Closed WASasquatch closed 7 years ago
I am currently not at home, I am going to take a look at it tomorrow.
The login spam is caused by a reconnect which is done after getting players or bans from the server. This reconnect is a workaround for various bugs, so I won't remove it. Basically every time you get the players from the server, a new admin will login. However I stumbled across a little mistake I made some months ago while I was fixing a bug. After receiving the players, the reconnect method got called twice. So I removed this line in the latest version. This might reduce the login spam a bit, but it does not completely stop it.
Thanks, the explanation and looking into the code, it makes sense.
When I run a simple script to connect, and get users and bans, In my RTP the RCON script will login multiple times. Usually between 3-6 but sometimes more. I used to have a heartbeat script which checked the online status once every 2 minutes, and that would cause excessive RCON login spam. I have followed the construct of your class, and am disconnecting from the server, and PHP Access logs only say the server is running the script once, yet I get numerous logins from my servers RCON class.
the connection script
The Stats script