Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite reconnect loop when you are banned #813

Open
Askaholic opened this issue Oct 20, 2019 · 2 comments
Open

Infinite reconnect loop when you are banned #813

Askaholic opened this issue Oct 20, 2019 · 2 comments

Comments

@Askaholic
Copy link
Collaborator

If you try to log in while you are banned, you will receive a message from the server with your ban reason, followed by the server terminating the connection. This causes the client to automatically reconnect, triggering the ban message again and the server terminating the new connection again.

Each time the ban message is triggered, a new message window is stacked on top of the old one. So if your client has reconnected 4 times, you need to click "Dismiss" 4 times to close all of the open message dialogues.

I think it would be reasonable for the client not to attempt a reconnect if its connection is deliberately terminated by the server as it is in this case.

Server log:

DEBUG    Oct 20  22:33:26 ServerContext                  ServerContext(LobbyServer): Client connected
DEBUG    Oct 20  22:33:26 LobbyConnection                LobbyConnection initialized
TRACE    Oct 20  22:33:27 LobbyConnection                <<: {'version': '1.0.0', 'user_agent': 'downlords-faf-client', 'command': 'ask_session'}
TRACE    Oct 20  22:33:27 LobbyConnection                >>: {'command': 'session', 'session': 1311792467}
TRACE    Oct 20  22:33:31 LobbyConnection                <<: {'login': 'Askaholic', 'password': '<snip>', 'session': 1311792467, 'unique_id': '<snip>', 'local_ip': '192.168.42.7', 'command': 'hello'}
INFO     Oct 20  22:33:31 aiomysql                       SELECT login.id, login.login, login.password, login.steamid, login.create_time, lobby_ban.reason, lobby_ban.expires_at 
FROM login LEFT OUTER JOIN lobby_ban ON login.id = lobby_ban.`idUser` 
WHERE login.login = 'Askaholic' ORDER BY lobby_ban.expires_at DESC
INFO     Oct 20  22:33:31 aiomysql                       {'login_1': 'Askaholic'}
DEBUG    Oct 20  22:33:31 LobbyConnection                Rejected login from banned user: 166198, Askaholic, 1311792467
WARNING  Oct 20  22:33:31 LobbyConnection                Client error: You are banned from FAF forever.
 Reason :
 You are banned by yourself
WARNING  Oct 20  22:33:31 LobbyConnection                Aborting 184.53.16.187. You are banned from FAF forever.
 Reason :
 You are banned by yourself
DEBUG    Oct 20  22:33:36 ServerContext                  ServerContext(LobbyServer): Client connected
DEBUG    Oct 20  22:33:36 LobbyConnection                LobbyConnection initialized
TRACE    Oct 20  22:33:36 LobbyConnection                <<: {'version': '1.0.0', 'user_agent': 'downlords-faf-client', 'command': 'ask_session'}
TRACE    Oct 20  22:33:36 LobbyConnection                >>: {'command': 'session', 'session': 2249396700}
TRACE    Oct 20  22:33:40 LobbyConnection                <<: {'login': 'Askaholic', 'password': '<snip>', 'session': 2249396700, 'unique_id': '<snip>', 'local_ip': '192.168.42.7', 'command': 'hello'}
INFO     Oct 20  22:33:40 aiomysql                       SELECT login.id, login.login, login.password, login.steamid, login.create_time, lobby_ban.reason, lobby_ban.expires_at 
FROM login LEFT OUTER JOIN lobby_ban ON login.id = lobby_ban.`idUser` 
WHERE login.login = 'Askaholic' ORDER BY lobby_ban.expires_at DESC
INFO     Oct 20  22:33:40 aiomysql                       {'login_1': 'Askaholic'}
DEBUG    Oct 20  22:33:40 LobbyConnection                Rejected login from banned user: 166198, Askaholic, 2249396700
WARNING  Oct 20  22:33:40 LobbyConnection                Client error: You are banned from FAF forever.
 Reason :
 You are banned by yourself
WARNING  Oct 20  22:33:40 LobbyConnection                Aborting 184.53.16.187. You are banned from FAF forever.
 Reason :
 You are banned by yourself

OS
Windows

Wanna have the bug fixed quickly?
Visit Issue hunt...
Issue hunt

@Sheikah45
Copy link
Member

Is this already fixed as the server has the kick message right?

@Askaholic
Copy link
Collaborator Author

Hm, we could probably change the server to use kick there too

@Sheikah45 Sheikah45 transferred this issue from FAForever/downlords-faf-client Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants