Closed lkedziora closed 10 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (
5a5dbec
) to head (96f66e6
). Report is 9 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Looks good. Thanks!
This PR fixes two smaller issues around handling of disconnected sockets when Ping/Pong is enabled.
ws.close()
before the handler thread gets a chance to run, which results in the thread dying with an exception when registering the (now closed) socket.Reproducing
Both of these issues can be reproduced using the following:
server.py
client.py
Steps for reproduction:
python server.py
python client.py
One of the following can occur:
These are inherently racy, so it might take a bit for both of them to appear.