Spodii / netgore

Cross platform online rpg engine using C# and SFML
http://www.netgore.com/
40 stars 16 forks source link

Account in use persists #229

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
To reproduce:

1. Login to game normally
2. Kill the client without exiting properly
3. You're now unable to log back in, you just get the message "Error: Account 
already in use."

The problem:
Not sure if this ever resolves, but I left it for ~30 mins, and I still 
couldn't log in. 

Suggested solution?
Make it so it just boots the old user out, or boots them out if they don't 
respond to a ping / appear to be idle?

Original issue reported on code.google.com by Darkfros...@gmail.com on 20 Oct 2010 at 8:52

GoogleCodeExporter commented 9 years ago
Accidently submitted this a crapton of times >.< Kept getting a google error 
page saying it failed to submit... apparently it didn't D:

Marked the extra ones as dupes, sorry about that.

Original comment by Darkfros...@gmail.com on 20 Oct 2010 at 8:54

GoogleCodeExporter commented 9 years ago

Original comment by Spodiii on 21 Oct 2010 at 4:32

GoogleCodeExporter commented 9 years ago
I can't reproduce it, even when killing the process in various ways. My guess 
is that you actually have the connection open still somehow. What does it say 
in the server log when you kill the process? Does it say the connection was 
closed? The account was closed? User disposed?

The server already boots idle connections, but in a debug build, connections 
are allowed to idle for a very long time (for development simplicity reasons). 
In a release build, they will be kicked if they do not respond to any network 
messages over a span of a few seconds (not sure exactly how many). But I guess 
I can also have it so that if you try to log in to an account in use, it closes 
the account instead of locking the one trying to log in out. This is a pretty 
common issue in multiplayer games, and a common approach to resolving it.

Original comment by Spodiii on 21 Oct 2010 at 4:39

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r3923.

Original comment by Spodiii on 21 Oct 2010 at 6:18