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

[WS] Fix peer stuck in CLOSING state #101760

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

Conversation

Faless
Copy link
Collaborator

@Faless Faless commented Jan 18, 2025

This was due by the buffer being cleared on close (including in closing state) preventing further reads.

This commit changes the close logic to only clear the buffer when the peer connection has been fully closed (acknowledged by the other end, or closed due to a "broken" connection).

Fixes #100948

@Faless Faless requested a review from a team as a code owner January 18, 2025 15:00
@Faless Faless added this to the 4.4 milestone Jan 18, 2025
This was due by the buffer being cleared on close (including in closing
state) preventing further reads.

This commit changes the close logic to only clear the buffer when the
peer connection has been fully closed (acknowledged by the other end, or
closed due to a "broken" connection).
@Faless Faless force-pushed the ws/fix_endless_closing branch from af89218 to 81181c5 Compare January 18, 2025 15:02
@Faless Faless changed the title [WS] Fix state stuck in disconnecting [WS] Fix peer stuck in CLOSING state Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[4.4.dev5] Websockets stuck in STATE_CLOSING
2 participants