Server Patches
by admin on 7-11-2008 0 commentsStats and rankings are still pending, but in the meantime, I've fixed a couple of problems in the server application that were causing it to freeze occasionally. Geek info follows...
Each instance of a game runs in its own thread. The master thread is responsible for passing users' sockets to the appropriate thread when they join the game. Improper management of socket references was causing the sockets to be monitored in two threads at once, the master and the game, when only the game should have been monitoring it; and it was also causing occasional deadlocks. With those problems fixed, the games should run a little smoother and we shouldn't get those deadlocks anymore.

