Skip to content

Flags to opcodes should ignore CURLWS_CONT flag - #14397

Closed
Pete-Cordell wants to merge 1 commit into
curl:masterfrom
Pete-Cordell:patch-1
Closed

Pete-Cordell wants to merge 1 commit into
curl:masterfrom
Pete-Cordell:patch-1

Conversation

@Pete-Cordell

Copy link
Copy Markdown
Contributor

When converting WebSocket flags such as CURLWS_TEXT | CURLWS_CONT to opcodes for sending fragmented frames, we want to exclude CURLWS_CONT from the lookup so AND it out.

Alternatively, this tweak could be moved into the ws_frame_flags2op() function or the WS_FRAMES table could be re-ordered to test CURLWS_TEXT and CURLWS_BINARY first.

(I'm assuming this is how call to curl_ws_send() is supposed to be used. My apologies if not.)

When converting WebSocket flags such as CURLWS_TEXT | CURLWS_CONT we want to exclude CURLWS_CONT from the lookup.
@bagder bagder closed this in 0011df4 Aug 7, 2024
@bagder

bagder commented Aug 7, 2024

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants