# HG changeset patch # User unc0rr # Date 1240141241 0 # Node ID f7944d5adc5fab13a6d063709c5623c46c0c6b94 # Parent 41b3d00949ca4b935d9e80e1382b21b2ddcd5d44 Some work to try prevent stack memory leak diff -r 41b3d00949ca -r f7944d5adc5f gameServer/CoreTypes.hs --- a/gameServer/CoreTypes.hs Sat Apr 18 12:46:56 2009 +0000 +++ b/gameServer/CoreTypes.hs Sun Apr 19 11:40:41 2009 +0000 @@ -15,7 +15,7 @@ data ClientInfo = ClientInfo { - clientUID :: Int, + clientUID :: !Int, sendChan :: Chan [String], clientHandle :: Handle, host :: String, @@ -23,18 +23,18 @@ nick :: String, webPassword :: String, logonPassed :: Bool, - clientProto :: Word16, - roomID :: Int, - pingsQueue :: Word, + clientProto :: !Word16, + roomID :: !Int, + pingsQueue :: !Word, isMaster :: Bool, isReady :: Bool, - isAdministrator :: Bool, - forceQuit :: Bool, - partRoom :: Bool + isAdministrator :: Bool } instance Show ClientInfo where - show ci = show $ clientUID ci + show ci = (show $ clientUID ci) + ++ " nick: " ++ (nick ci) + ++ " host: " ++ (host ci) instance Eq ClientInfo where a1 == a2 = clientHandle a1 == clientHandle a2 @@ -59,14 +59,14 @@ data RoomInfo = RoomInfo { - roomUID :: Int, + roomUID :: !Int, name :: String, password :: String, roomProto :: Word16, teams :: [TeamInfo], gameinprogress :: Bool, playersIn :: !Int, - readyPlayers :: Int, + readyPlayers :: !Int, playersIDs :: IntSet.IntSet, isRestrictedJoins :: Bool, isRestrictedTeams :: Bool, @@ -118,7 +118,6 @@ serverMessage :: String, serverMessageForOldVersions :: String, listenPort :: PortNumber, - loginsNumber :: Int, nextRoomID :: Int, dbHost :: String, dbLogin :: String, @@ -130,7 +129,7 @@ } instance Show ServerInfo where - show si = "Logins: " ++ (show $ loginsNumber si) + show si = "Server Info" newServerInfo = ( ServerInfo @@ -139,7 +138,6 @@ "

Hedgewars 0.9.10 is out! Please, update. Support for previous versions IS DROPPED

Download page here

New features are:

" 46631 0 - 0 "" "" "" diff -r 41b3d00949ca -r f7944d5adc5f gameServer/NetRoutines.hs --- a/gameServer/NetRoutines.hs Sat Apr 18 12:46:56 2009 +0000 +++ b/gameServer/NetRoutines.hs Sun Apr 19 11:40:41 2009 +0000 @@ -45,8 +45,6 @@ False False False - False - False ) writeChan coreChan $ Accept newClient