Gelbpunkt / gateway-proxy

Drop-in proxy for Discord gateway connections and sessions allowing for zero downtime deploys
GNU Affero General Public License v3.0
88 stars 17 forks source link

Graceful shutdown support #18

Closed laggron42 closed 1 year ago

laggron42 commented 1 year ago

Hi,

I have been using this proxy to run my bot with 240 shards and it works great, thank you for your work!

I was wondering if it's possible to add support for a proper disconnection (as described here) from the gateway in certain conditions (for instance receiving a SIGTERM signal).

This would allow the bot to actually show up as disconnected instead of staying connected for 5 minutes and confusing users when the intent is to actually shut down everything.

Gelbpunkt commented 1 year ago

That should be implemented as of 1bf68e2418ab3b80b9cee24ad6f13210fc325535.