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

Server don't detect forced disconnect #10

Open
Zen-kun04 opened this issue Oct 20, 2022 · 2 comments
Open

Server don't detect forced disconnect #10

Zen-kun04 opened this issue Oct 20, 2022 · 2 comments

Comments

@Zen-kun04
Copy link

When the client is suddently disconnected (like if his network disconnects or he connects to a VPN while he's connected to the websocket), it will be disconnected from the server (ok) but the server will still think he's still connected...

Any solution to this?

@pikhovkin
Copy link
Owner

Do "ping" at some periodic interval

@Zen-kun04
Copy link
Author

I already tried to do that. I first tried to do a ping from the client to the server, and then discovered that issue with connection issues. So the solution is normally to make a ping from the server to the client (which is kinda easy) but I need to set a timeout and there's the problem, I can't find out how to do that correctly.

I tried with asyncio.wait_for, signals & multiprocessing but nothing seems to be working correctly. Any idea on how to fix this please?

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