-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Websockets: send multi frames #10413
Comments
Seems I found a bug in ws_packethead, see the comment inside the final "else" clause, now I'm able to send multi frame packets.
|
Above solution is incomplete, last frame must be sent with CONT opcode, so here is the code that seems to work properly:
I am sending multi frames in this way: send(frame1, CURLWS_BINARY | CURLWS_CONT) // sending as BINARY with FIN==0 |
Thanks for the patch @mikeduglas! Can you turn that into a proper PR or would you prefer I do it? |
@bagder Please do it yourself, I can't. |
Fixes curl#10413 Closes curl#10420
I did this
I want to send multiple frames (not fragments).
AFAIK 1st frame must not have CURLWS_CONT bit set and FIN bit aslo must be 0. All other frames must have CURLWS_CONT bit set, also last frame must have FIN bit set.
Now, in ws_packethead function, FIN bit is always set to 1 if CURLWS_CONT bit is not set. So the server gets only first frame and ignores all other frames.
I expected the following
curl/libcurl version
7.87.1-DEV
operating system
Windows 11
The text was updated successfully, but these errors were encountered: