Server connection issues


Hi again,

I noticed there are still some server connection issues. More precisely, when connection with realm server is lost (by shard servers) it seems connection recovery fails. That is unfortunate, because for now I can't debug it much, so only thing I can do is just restart server when I notice it happened.

I see two strange things with this issue:

  1. Why connection is lost?
    It seems to be possibly related again with database connection being idle for too long. That issue is getting annoying. I already done few fixes for that, but it seems SQL lib I use do some caching and in case connection is lost, only way to recover it properly is to totally close it and setup everything from scratch, what in my opinion is not the best solution (especially there is dedicated method for reconnect, but it seems to be not working properly due to mentioned caching). Another thing is that I don't really see why database connection issue could cause connection issue between shard and realm servers, since that's totally different connection. Maybe it is not related and that connection issue is caused by something else, hard to tell without proper debugging.
  2. Why cannot recover connection?
    In my implementation of servers I predicted case that connection may be lost. In such case server will try reconnect every few seconds and I expected this to recover connection, but for some unknown for me reasons it seems after connection is lost once it will always fail in future until server is restarted. That may be some issue in my implementation, but again I can't debug it now, because I have only limited access to server currently.

Sorry if server doesn't work when you try to test it, but well that's always some feedback for me. Seems stability of servers connections is not the best yet and need more work :p

Get EWF Multiplayer test

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.