You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running a web app and have the infamous socket.send() raised exception. bug.
I cannot give any reproducible example but I ran the loop in a thread, thus giving me access to the REPL.
I created my WebSocket with web.WebSocketResponse(heartbeat=5).
The problem seems to be that _pong_not_received was called but did not close the websocket. The REPL indicates that ws._req.transport is None, which is the reason why it does not do anything.
I'm running a web app and have the infamous
socket.send() raised exception.
bug.I cannot give any reproducible example but I ran the loop in a thread, thus giving me access to the REPL.
I created my WebSocket with
web.WebSocketResponse(heartbeat=5)
.The problem seems to be that
_pong_not_received
was called but did not close the websocket. The REPL indicates thatws._req.transport
is None, which is the reason why it does not do anything.aiohttp/aiohttp/web_ws.py
Lines 113 to 118 in 48bf8c3
Why is the condition checked? I think the assumptions are too strong and the check should only be made before calling
self._req.transport.close()
.The text was updated successfully, but these errors were encountered: