FAForever / server

The servercode for the Forged Alliance Forever lobby
http://www.faforever.com
GNU General Public License v3.0
67 stars 62 forks source link

Connection is closed if two login messages are sent to the same connection #968

Open Askaholic opened 1 year ago

Askaholic commented 1 year ago

The logic for detecting that you are already signed in will send a kick message even if the second login request is coming from the exact same connection as the first. I'm not sure if this is really desired. I could see a few potential ways of handling this.

  1. Continue as normal, recreate the player object and resend all of the *_info messages.
  2. Continue as normal, but update the existing player object with the new username rather than recreating the object.
  3. Ignore the request and do nothing