Add a timeout system to the server such that it kicks players after a certain time of inactivity
LunarEclipse363 opened this issue · comments
It would prevent avatars staying in game if the client didn't disconnect properly. It should send few "are you alive" ping packets first. I suggest timeout time 10s and sending 3 ping packets to client every 500ms later (if one succeeds don't send more).
These needs fixing in two parts:
-
The server needs to kick a client if it doesn't hear anything from them after a certain amount of time
-
The client needs to respond to ping messages with its own ping message
I've made the client respond to server's ping packets in commit 78b27a2
Anybody willing to handle this from server-side? @terahxluna?
moved to gitlab https://gitlab.com/veloren/game/issues/14