Posts: 1,076
Threads: 70
Joined: Jul 2016
Reputation:
0
Hello, all,
So I had something very unusually weird happen to some server I'm maintaining, It occurred 3 days ago, and I kept observing it since,
The player list on the client showed 4 static players one of them was called 'You_tube' (that's the only one I remember), 3 days had passed and those 4 players stayed marked on the player list, and when people try to join the server, it said that the server is full,
The problem, however, was simply solved by restarting the server(Not the gamemode), This kept me wondering what could be causing this.
Posts: 1,801
Threads: 21
Joined: Mar 2008
Reputation:
0
You should've checked the CPU Load at that time, this sounds like an infinite loop in a PAWN Script (could also be caused by one or more Array index out of bounds errors (which can result in undefined behaviour - like an infinite loop)).
If you did see the Server Load, if it was at maximum load it supports the theory that it was an infinite loop.
Posts: 192
Threads: 2
Joined: Sep 2010
05.10.2017, 03:15
(
Last edited by TommyB; 05/10/2017 at 07:10 AM.
)
Quote:
Originally Posted by NaS
You should've checked the CPU Load at that time, this sounds like an infinite loop in a PAWN Script (could also be caused by one or more Array index out of bounds errors (which can result in undefined behaviour - like an infinite loop)).
If you did see the Server Load, if it was at maximum load it supports the theory that it was an infinite loop.
|
An out of bounds error would not cause something like this. I don't believe an infinite loop would give the server is full message while trying to connect either. What usually happens is a player joins the server and ends up stuck at the connecting screen for a specific amount of time. Eventually, the SA-MP server kicks the player.
Eoussama, open your server.cfg file and see if you have connection cookies off. The specific option you're looking for is
conncookies. Ensure this is set to
1. Furthermore, you should check your server_log.txt to see if your server is experiencing a heap of multiple connections. Having connection cookies off allows malicious people to spam a SA-MP server with fake connections which temporarily occupy player slots, which is what I imagine is happening to your server.