EQEmu / Server

Open Source Fan-Based EverQuest Emulator Server project
https://docs.eqemu.io/
GNU General Public License v3.0
447 stars 410 forks source link

[Loginserver] Login Fatal Error Spamming #4476

Open KimLS opened 2 weeks ago

KimLS commented 2 weeks ago

Description

When connecting to Legacy Login Servers with bad login info you will get a fatal error back from the server. It will then disconnect you triggering the reconnect code to trigger. This changes the logic slightly to prevent this from happening. If we get a fatal error from the server, we disconnect on the world side instead of waiting for login to do it and then do not attempt to reconnect.

Fixes # (issue)

Type of change

Testing

I've run it locally there aren't many cases to test.

Clients tested:

This does not affect clients it is between world -> login.

Checklist

KimLS commented 2 weeks ago

There was some question of approach here, Akkadius wanted a back off timer but the more I thought about it the more it seemed like if we're getting fatal errors from login: do we even want to try reconnecting? My thought was no; if we still want to put the work into the exponential backoff instead we can but it's not simple.

Akkadius commented 2 days ago

Looks good but I need to test this yet