Websocket Fragmentation - Bug? #1881
Unanswered
phkomma
asked this question in
Ask questions, get answers
Replies: 1 comment 4 replies
-
@phkomma yes, mongoose defragments packet itself, you don't need to do anything. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
recently, I switched from mongoose v6 to mongoose v7. For mongoose v6, I implemented websocket packet fragment merging on my own by means of the RFC 6455 standard. In mongoose v7 I got errors within my application when the browser decided to split websocket data into smaller fragments. After delving into the code, I now assume that fragment merging is done by the mongoose library itself. Is this correct? So there is no need of keeping track of fragmented data? If so, why is the 7th bit of websocketMessage->flags, the FIN bit, not set for the case when mongoose merged split data and provides the data in websocketMessage->data? Is this behavior intended or just to be ignored as mongoose merges the split data by its own?
I'd appreciate if you could clarify this issue.
Regards
Philippe
Beta Was this translation helpful? Give feedback.
All reactions