Skip to content

Block all WebSocket sends after closeOnBackpressureLimit - #1932

Open
GetThatCookie wants to merge 1 commit into
uNetworking:masterfrom
GetThatCookie:1338
Open

Block all WebSocket sends after closeOnBackpressureLimit#1932
GetThatCookie wants to merge 1 commit into
uNetworking:masterfrom
GetThatCookie:1338

Conversation

@GetThatCookie

Copy link
Copy Markdown
Contributor

Fixes #1338.

Once closeOnBackpressureLimit is triggered, store the closing state per WebSocket and return DROPPED for all subsequent sends, even if the backpressure drains below the limit.

The state is set before the dropped callback, making reentrant sends safe. Automatic timeout pings are also suppressed while closing.

The existing deferred shutdown behavior remains unchanged.

Tested by:

  • Building all examples
  • Running the complete ASan unit test suite
  • Verifying drained, reentrant and subsequent sends remain dropped

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.

closeOnBackpressure should block all further sending

1 participant