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.
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.