-
Notifications
You must be signed in to change notification settings - Fork 49
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
[asyncio] Client disconnects from server without pinging it. #55
Comments
RFC1459, section 4.6.2 seems to imply the Could you point me to servers which base their PING messages off of this? I'd like to inspect their implementation. |
Actually, referencing that RFC it says "A PING message is sent at regular intervals if no other activity detected coming from a connection." I found this problem while connected to EsperNet, which uses charybdis, although they may have customized this particular thing. |
Just realised that it also states: "Servers should not respond to PING commands but rely on PINGs from the other end of the connection to indicate the connection is alive.", which makes this a valid implementation indeed. Definitely going to be putting back that code, then. |
Oh I just realized that the problem I was experiencing may not be solved by the fix you proposed, because the timeout was on pydle's side, not on the serverside (pydle closed the connection due to not recieving input.) |
Some servers base sending PING messages on the last time the client sent data to the server, causing the client to thing that it has disconnected from not receiving data. Instead, the client should PING the server to check if it is still connected.
The text was updated successfully, but these errors were encountered: