+ Reply to Thread
Results 1 to 2 of 2

Thread: The Meaning of zombie'd users

  1. #1
    Join Date
    Sep 2011
    Thanked 3 Times in 2 Posts

    The Meaning of zombie'd users

    Hi Teresa and All;

    I want to ask a question which may be related to our problem. This is the second time I have come accross this problem. On the server side I am kicking a user using getApi().kickUserFromServer() but the user is hanging on the server. On the Electroserver5.log I do not get any exceptions after I use getApi().kickUserFromServer() The client of the kicked user's connection close event is successfully fired. The second time when the user is try to log in I got the generic error which is the Username exists in the users table.

    Should I always use evictUserFromServer? Can I learn the meaning of zombie'd user?


  2. #2
    Former Administrator tcarr's Avatar
    Join Date
    Dec 2007
    Thanked 1,178 Times in 1,165 Posts
    Evict is only for LoginEventHandler use, because it doesn't send any message to the user explaining that he is being kicked.

    When a user does a dirty disconnect (client doesn't tell the server that it is closing the connection, such as when Flash player crashes), the server will think that the user is still logged in, until the idle timeout period is reached for the connection and that user is logged off. If the LoginEventHandler uses evict, this is solved, otherwise the user has to wait several minutes (default is 10 minutes). You can make the idle timeout period shorter, and have the client send a heartbeat message once a minute, if you want to decrease the time that the user is locked out, but the minimum is one minute and it's easy to have a login event handler do the evict.

    When a user is in a room with a plugin and the plugin crashes, sometimes all the users in the room are kicked from the server and they are all ghosts that don't disappear when idle timeout is reached. This is RARE, but it happens. Evict in a login event handler is the only cure for this; kick doesn't do the trick.
    Teresa Carrigan
    Senior Software Developer
    Janus Research Group, Inc.
    Senior Engineer
    Electrotank, Inc.

  3. The Following User Says Thank You to tcarr For This Useful Post:

    Caglar (05-03-2012)

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts