Skip to content

Quick disconnect after login packet leaves the account online forever #9

Description

@sven-n

When a client connects to the game server, sends a login packet and right after that disconnects from the game server, the client stays 'logged in' in the login server forever.
The Connection class usually receives the data before getting the disconnect message at EndReceive.
However, it could be possible that the "LastOperation" of the SocketAsyncEventArgs is a disconnect and contains data in the Buffer, too. Then the method raises a disconnect event before handling the incoming packet. Because the login process takes a bit of time, it could first do all the logout logic and afterwards logs the account in with the handled packet.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions