Why are there disconnects seemingly at random? #9722
-
I have recently looked into my bots logs and noticed that theres 2 scenarios where it reconnects. The first one seems to be intended as it sends a reconnect opcode.
But sometimes theres also this:
after which theres usually an error like:
It does automatically reconnect afterwards but Im just wondering what the reason is for discord to close the connection without asking for a reconnect. Is it a normal thing to happen? In the end its handled well and you dont notice it, though it still throws an error which shouldnt normally happen on a regular basis. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is just part of the connection flow. Discord disconnects clients every 15 minutes to 2 hours for load balancing reasons. Some of those rarely get invalidated and you have to do a full reconnect but most of the time it's just resumed properly. |
Beta Was this translation helpful? Give feedback.
This is just part of the connection flow. Discord disconnects clients every 15 minutes to 2 hours for load balancing reasons. Some of those rarely get invalidated and you have to do a full reconnect but most of the time it's just resumed properly.