Skip to content

refactor websocket control frame handling#3241

Merged
KhafraDev merged 1 commit intonodejs:mainfrom
KhafraDev:refactor-websocket-control-frame-handling
May 11, 2024
Merged

refactor websocket control frame handling#3241
KhafraDev merged 1 commit intonodejs:mainfrom
KhafraDev:refactor-websocket-control-frame-handling

Conversation

@KhafraDev
Copy link
Copy Markdown
Member

@KhafraDev KhafraDev commented May 10, 2024

Closes #3239
Closes #2859

Control frames cannot be fragmented which guarantees that they will be handled in full in a single message. Since this is the case, there's no reason to assign values to this.#info (which is the internal state/settings of a frame) which should avoid race conditions.

Loading
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

Successfully merging this pull request may close these issues.

WebSocket: message handler sometimes called with null data (potentially issue in frame processing)

2 participants