could it be due to the ports being reused while one is still active?
is the code for the game spawner open source?
........ seriously? no its not due to the ports being reused while one is still active. The open game spawner uses a port that the strict games don't even go into.
The game spawner is just a php script that starts a game. Its not complicated and certainly not the source of this issue. The issue is the server crashes. It doesn't crash every time, just sometimes, usually when an open game has lasted long enough. This leads me to believe that the winbolo server is accessing memory that hasn't been properly allocated for it. And when the new game fires up, it starts using that memory. Once that occurs, the server hits some 'bad' memory and crashes. The solution is simple, figure out the bug and fix it. Feel free to attempt to figure it out UD.
I noticed this issue a very very long time ago, I tried to figure it out, I was unable to. You guys just didn't notice until now I guess.
Here is the spawner code UD, as you can see, it is extremely unlikely to be the cause of this issue.
[code:1:2e12abb3c0]while(true) { //start the spawning
$map = get_rand_map();
$loggingfile = "\"".$map. "-". time() . "-" . $port . "-debuglog.txt\"";
echo $map."\n";
echo $loggingfile."\n";
$exec = $path ."linbolods -map \"" . $path . "spawnermaps/" . $map . "\" -port $port -gametype $gametype -mines $mines -ai $ai -tracker $tracker -autoclose -log -logfile $loggingfile";
//echo $exec;
exec($exec);
}
[/code:1:2e12abb3c0]
Min