FAForever / server

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

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

Closed Askaholic closed 3 weeks 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