You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have run the Client in debug mode and put a break point here and noticed err is periodically getting unexpected EOF and thereby firing onDisconnect() everytime even when the Client has a active connection to the Server.
This will lead to unexpected behaviors, such as if anyone is trying to reconnect to the server inside onDisconnect(), which will lead to a crazy amount of TCP overflow of connections like in my case.
Now one will ask why I don't let the ReconnectStrategy do the job for Reconnect, well that is because it won't reconnect if it first established a connection and then lost it, and the problem and solution for that is explained the link below.
Fun story: The TCP overflow of connections got entire internet of my home to crash a few times and It got me to contact my ISP provider to check for any anormalities :D
The text was updated successfully, but these errors were encountered:
I have run the Client in debug mode and put a break point here and noticed
err
is periodically getting unexpected EOF and thereby firing onDisconnect() everytime even when the Client has a active connection to the Server.This will lead to unexpected behaviors, such as if anyone is trying to reconnect to the server inside
onDisconnect()
, which will lead to a crazy amount of TCP overflow of connections like in my case.Now one will ask why I don't let the
ReconnectStrategy
do the job for Reconnect, well that is because it won't reconnect if it first established a connection and then lost it, and the problem and solution for that is explained the link below.I fixed it by avoiding setting
onDisconnect()
at all and by implementing this solution Feature Request: Let's implement a client.AutoReconnect() method on lost connectionsFun story: The TCP overflow of connections got entire internet of my home to crash a few times and It got me to contact my ISP provider to check for any anormalities :D
The text was updated successfully, but these errors were encountered: