Skip to content
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

[WebSocket] Better detect transition to STATE_CLOSING #97913

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Faless
Copy link
Collaborator

@Faless Faless commented Oct 7, 2024

When wslay receives a message that is too big it automatically sends a close request to the remote peer with code 1009 (Message Too Big) but it also completely stop calling the receive callback resulting in the state being "stuck" as CONNECTED (even if both client and server have disconnected).

We now check if we sent such a close message and manually transition to the "closed" state with the proper reason.

Fixes #97899
Fixes #84423

@Faless Faless added this to the 4.4 milestone Oct 7, 2024
@Faless Faless requested a review from a team as a code owner October 7, 2024 09:16
When wslay receives a message that is too big it automatically sends a
close request to the remote peer with code 1009 (Message Too Big) but it
also completely stop calling the receive callback resulting in the state
being "stuck" as CONNECTED (even if both client and server have
disconnected).

We now check if we sent such a close message and manually transition to
the "closed" state with the proper reason.
@Faless Faless force-pushed the fix/websocket_closing_transition branch from ffc0929 to a1ef068 Compare October 7, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant