Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the dead client will still remain in the server and other clients #1

Open
imfeizhu opened this issue Jun 2, 2022 · 2 comments
Open

Comments

@imfeizhu
Copy link

imfeizhu commented Jun 2, 2022

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?

q

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.

@imfeizhu
Copy link
Author

imfeizhu commented Jun 2, 2022

i found it worked fine in bpg3.0,errors in 3.3

@imfeizhu imfeizhu closed this as completed Jun 2, 2022
@lordloki
Copy link
Owner

lordloki commented Jun 2, 2022

I open again to check in current upbge 0.33

@lordloki lordloki reopened this Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants