-
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
Auto recovery after ConnectionResetError #155
Comments
Thats odd, Pydle should attempt to reconnect on a broken connection. I will need to do some investigating. |
Yet another case in Python 3.9, with slightly different error message:
|
+1 to replication here, if I have the bot running on a server and then kill the server (ex, shutdown or kill the IRCD), it breaks the whole works. ConnectionResetError happens and the bot never times out nor attempts recovery, even 10+ minutes after the last ping. On Windows:
|
The reconnection logic is all sorts of buggy and will likely need to be redone entirely. |
@Rixxan , in reviewing your code I believe the zombification you mention is a byproduct of your implementation. In current mainline you have two different threads running an event loop. When pydle dies on one, the other lives on and prevents a shutdown. |
Currently the connection is lost after a connection reset error. Is there any way I can catch this and force a reconnect instead of leaving the daemon broken?
The text was updated successfully, but these errors were encountered: