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

[RFC] Supporting auto-reconnect to discord gateway #129

Open
GameParrot opened this issue Jun 13, 2024 · 1 comment
Open

[RFC] Supporting auto-reconnect to discord gateway #129

GameParrot opened this issue Jun 13, 2024 · 1 comment

Comments

@GameParrot
Copy link

The bot has been terminating with InternalThread.ERROR: websocket error {"e":"Unable to read from stream: stream_get_contents(): SSL: Connection reset by peer"} [] appearing in the log. Is this a bug in the bot or just unstable network? If its network instability could the bot autoreconnect without having to restart the entire server?

@JaxkDev
Copy link
Member

JaxkDev commented Jul 22, 2024

I'm going to assume unstable network.

In terms of the auto-reconnect its a bit of a shady area as to what to do, there are indeed many options like auto reconnecting but that would create problems with what to do during that gap eg if a plugin tries sending a message or is waiting on one during that gap it would never work.

Welcome to other ways to support reconnecting but it requires a lot more thought and structure into the plugin before that can be done.

@JaxkDev JaxkDev changed the title Termination with InternalThread.ERROR: websocket error {"e":"Unable to read from stream: stream_get_contents(): SSL: Connection reset by peer"} [] [RFC] Supporting auto-reconnect to discord gateway Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants