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
Sometimes the server finds that clients had no activity for 5 secs or more, so it disconnects them.
The problem is that it disconnects them even when they should be still sending packets and the server should answer them back.
This is partially caused by a wrong update on the nextcheckactivity time and some packets missed by the server (the server doesn't notice some of the packets enqueued to be sent).
I fixed it locally, but there's another issue now, with lots of clients the server often disconnects because it didn't received a keep alive packet in the last 60 secs.
This could be related to the fact that i'm running clients and server on the same machine, so clients doesn't have enough cpu time to read all the other packet (mostly chunks packet) and keepalive one, to send an answer back.
Should investigate more.
The text was updated successfully, but these errors were encountered:
Moved the nextActivityCheck after the packet is really sent or received, not after the async call is made.
Some changes in Send_Start code to avoid missing to notice the enqueue of some packets.
#118
Sometimes the server finds that clients had no activity for 5 secs or more, so it disconnects them.
The problem is that it disconnects them even when they should be still sending packets and the server should answer them back.
This is partially caused by a wrong update on the nextcheckactivity time and some packets missed by the server (the server doesn't notice some of the packets enqueued to be sent).
I fixed it locally, but there's another issue now, with lots of clients the server often disconnects because it didn't received a keep alive packet in the last 60 secs.
This could be related to the fact that i'm running clients and server on the same machine, so clients doesn't have enough cpu time to read all the other packet (mostly chunks packet) and keepalive one, to send an answer back.
Should investigate more.
The text was updated successfully, but these errors were encountered: