mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-08 13:41:31 +08:00
Close transport after WebSocket close handshake completes
This commit is contained in:
parent
3fc9a2f002
commit
51d350a212
@ -163,6 +163,9 @@ class WebSocketProtocol:
|
|||||||
self.closed = True
|
self.closed = True
|
||||||
self._close_event.set()
|
self._close_event.set()
|
||||||
|
|
||||||
|
# Close the transport after close handshake
|
||||||
|
self.transport.close()
|
||||||
|
|
||||||
async def _send_accept(self, message):
|
async def _send_accept(self, message):
|
||||||
"""Send WebSocket handshake accept response."""
|
"""Send WebSocket handshake accept response."""
|
||||||
# Get Sec-WebSocket-Key from headers
|
# Get Sec-WebSocket-Key from headers
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user