We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 580c417 commit ad79721Copy full SHA for ad79721
src/websockets/legacy/server.py
@@ -598,7 +598,8 @@ async def handshake(
598
599
# The connection may drop while process_request is running.
600
if self.state is State.CLOSED:
601
- raise self.connection_closed_exc() # pragma: no cover
+ # This subclass of ConnectionError is silently ignored in handler().
602
+ raise BrokenPipeError("connection closed during opening handshake")
603
604
# Change the response to a 503 error if the server is shutting down.
605
if not self.ws_server.is_serving():
0 commit comments