Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Expected non-final packet" on fragmented messages #3

Open
jketterl opened this issue Aug 6, 2012 · 1 comment
Open

"Expected non-final packet" on fragmented messages #3

jketterl opened this issue Aug 6, 2012 · 1 comment

Comments

@jketterl
Copy link

jketterl commented Aug 6, 2012

I'm having a little trouble receiving big messages from a node.js websocket server (if it's of any use, the server side uses this library). The connection seems to close with the "Expected non-final packet" exception every time a text message that can't be contained in a single frame is received.

I've took some time and read the code and the ietf rfc (this version here) and from what i see, it seems your code is choking on the initial frame that is supposed to start the fragmented message because it believes the message to be a continuation frame.

I've changed the list of opcodes allowed for fragmentation (FRAGMENTED_OPCODES) to only contain OP_CONTINUATION and it seems to work now. i am however unsure wether this is the correct fix for the situation at hand, so i'd like to hear your opinions on that.

@max-mapper
Copy link

+1

bkase referenced this issue in bkase/android-websockets Jan 3, 2013
Fire onConnect event when connection established
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants