[messages] [Technical Support & Bugs] Lost connection to server error

Joel Uckelman uckelman at nomic.net
Sun Apr 2 12:57:55 CEST 2017

Thus spake Malnorma:
> I used to get this constantly.  I don't know what was happening on the
> server, but it appeared as if it was queuing up messages instead of
> sending them after the client had been idle for a while.  I noticed I
> was able to force an update by toggling the LFG or away status, or
> typing something (which was annoying for the game).
> So I added a fake keepalive to fix it, and haven't had it happen since. 
> In SocketNodeClient, I keep track of the last time a message was sent or
> received, and have a timer task periodically check whether the
> connection has been idle for 60 seconds.  If it has, I send an empty
> string message, which is enough to stop the issue.

Would you mind creating a branch with the modified code, or posting
a patch so I could have a look? 


More information about the messages mailing list