Close packet are sometimes not sent to the other side #10001

Open
opened 2026-08-29 10:34:53 +00:00 by miguel · 0 comments
Owner

The close mechanism needs to wait for the close packet to be sent to the other side before declaring the connection officially closed. As it is now, the local closure happens in parallel to the sending of the close packet, so depending on the time of these two parallel actions sometimes the local connection is closed before the close packet is sent.

Reference: https://github.com/miguelgrinberg/simple-websocket/issues/41

The close mechanism needs to wait for the close packet to be sent to the other side before declaring the connection officially closed. As it is now, the local closure happens in parallel to the sending of the close packet, so depending on the time of these two parallel actions sometimes the local connection is closed before the close packet is sent. Reference: https://github.com/miguelgrinberg/simple-websocket/issues/41
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
miguelgrinberg/simple-websocket#10001
No description provided.