-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
Disconnect issue #184
Comments
There are lots of conditions that can lead to disconnects (other than explicit client disconnect):
The causes for these are varied, and it can be difficult to ascertain what conditions led to a disconnect or what node initiated the disconnect. At a basic level, it's important to (a) send periodic keep-alive messages (pings), as servers may disconnect a client they believe to be idle, and (b) respond to keep-alive messages from the server. If you're doing both of these, the best advice I can give is to inspect the client and attempt to elicit more detail about when the disconnects happen and why. Start with: how do you know your client is disconnected? Can you tell when the disconnection happened? |
I can't seem to figure out how should I handle a disconnect case, my bot keeps disconnecting from time to time (either the irc network issue, or something on my end), the on_disconnect event doesn't get fired. Much obliged for a snippet.
The text was updated successfully, but these errors were encountered: