Players not getting kicked after disconnect-lag-spike-something

    Joined
    Jun 26, 2013
    Messages
    24
    Reaction score
    0
    I've noticed several players (including myself) get stuck with the dreaded "name already logged in" even though there is no one actively playing on the server using that name. It seems the server fails to kick the person somehow.

    I noticed all players hit by this have a lag of 0 in the players' list. Perhaps servers could benefit from a function that kicks players who have consistent 0 latency?



    edit: yes, I've waited the three minutes so that the server will time out my old connection. I've waited longer as well. And no, there's no other player using my name.
     
    Joined
    Jun 26, 2013
    Messages
    24
    Reaction score
    0
    No seriously, this issue is leading to half the server list on the realm I play to have ping = 0. And as people try to log back in and fail, repeatedly, this stresses the server severely to the point of inducing 2000-5000 ms delays/disconnects for the remaining playerbase.

    This then persists until the server crashes or is restarted.



    Since there are cases where it is normal for a player to have ping = 0 (localhost user) perhaps a check could be implemented to see if server IP = user IP and skip the kick (if ping 0).

    pseudocode

    if (Player.Ping.Get() == 0)

    if (Player.Host.Get() != self.ip)

    Server.Kick(player, \"You have been kicked for having 0 ping.\");