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
Thanks, it's very useful for develop!
There is a problem. After the client close or exits abnormally, the dead client will still remain in the server and other clients, or I will still see the previous ones after I log in again. Is there any good way to clear these dead clients?
The functions :
if now - ce.socket_processor.lastTcpReceive > self.config.timeout:
ce._shutdown(REASON_TIMEOUT)
self._disconnect_client(ce, REASON_KICK)
in network.py do not work.
and i use:
if now - ce.socket_processor.lastTcpReceive > self.config.timeout:
self.clients.remove(ce)
self.updatePlayerCount(-1)
can only clean up the online num and list,
Thank you.
The text was updated successfully, but these errors were encountered:
Thanks, it's very useful for develop!
There is a problem. After the client close or exits abnormally, the dead client will still remain in the server and other clients, or I will still see the previous ones after I log in again. Is there any good way to clear these dead clients?
The functions :
if now - ce.socket_processor.lastTcpReceive > self.config.timeout:
ce._shutdown(REASON_TIMEOUT)
self._disconnect_client(ce, REASON_KICK)
in network.py do not work.
and i use:
if now - ce.socket_processor.lastTcpReceive > self.config.timeout:
self.clients.remove(ce)
self.updatePlayerCount(-1)
can only clean up the online num and list,
Thank you.
The text was updated successfully, but these errors were encountered: