Open Marboni opened 11 years ago
Are you receiving the recv_disconnect event on the server? If so, use that event to call the disconnect() function and close the connection. On 2013 mai 25 07:25, "Marboni" notifications@github.com wrote:
If client doesn't call socket.disconnect() before exit (for example, he closed browser, not tab, or he dropped his laptop to a river), his connection on server will be alive. I tried to send a packet to non-existing user, it doesn't help. Any workarounds?
— Reply to this email directly or view it on GitHubhttps://github.com/abourget/gevent-socketio/issues/145 .
recv_disconnect() isn't called in "xhr-polling" mode. It's a cause of the issue. I see only one way for now - make client emits from time to time and postpone timeout on server when receive them. But it's re-implementing of heartbeat functionality, so it's not so good. Any other solutions?
Guys, any updates here? I already implemented proposed approach, am I right?
If client doesn't call socket.disconnect() before exit (for example, he closed browser, not tab, or he dropped his laptop to a river), his connection on server will be alive. I tried to send a packet to non-existing user, it doesn't help. Any workarounds?