Open vzarutskiy opened 1 year ago
I'm having the same issue here. Unfortunately, the "Possible fix" did not help me. I still haven't been able to figure it out.
def finish(self):
StreamRequestHandler.finish(self)
self.server._client_left_(self)
The only obvious pattern I have found is that it occurs when a client's browser idles or disconnects in the middle of the server transmitting a message to it. I just don't know how to disconnect/stop that one specific client that idled out.
Python-dbg detected warning during websocket server working:
Real socket closing happens in case where self._io_refs = 0 (socket.py):
self._io_refs is used in makefile (socket.py):
makefile is used in "setup" from StreamRequestHandler (socketserver.py):
Stream closing, which was opened by makefile happens in "finish" method of StreamRequestHandler, but this method does not execute in WebSocketHandler, only StreamRequestHandler.setup(self):
Possible fix: