Open alborrajo opened 3 weeks ago
The problem are half-connected sockets, where the client has dropped connection but the server isn't aware of it. Should be fixed by #486
While not as often as before it seems that this issue is still happening sometimes
Describe the bug It's been reported that sometimes, when a client gets disconnected (connection dropped as opposed to a regular logout), the entry in the database for that connection doesn't get removed. This means that whenever they try to log in back again, the server will think that they're still online, and kick them out.
To Reproduce Steps to reproduce the behavior:
Expected behavior The entry for the connection should be removed when the client disconnects
Additional context There's a function in both DdonGameServer and DdonLoginServer that handles cleaning up after a client disconnects. It has code in place for deleting the entry from the database on disconnection:
However, the entry isn't getting removed. This must be either because client.Account is null, or because the ClientDisconnected function isn't always getting called.