Don't require a timeout waiting for a game to connect initially, and

make no timeout the default.
This commit is contained in:
ehouse 2009-12-27 18:17:24 +00:00
parent c15998a10a
commit 7ac98bfcfb
2 changed files with 6 additions and 4 deletions

View file

@ -826,9 +826,10 @@ void
CookieRef::setAllConnectedTimer() CookieRef::setAllConnectedTimer()
{ {
time_t inHowLong; time_t inHowLong;
RelayConfigs::GetConfigs()->GetValueFor( "ALLCONN", &inHowLong ); if ( RelayConfigs::GetConfigs()->GetValueFor( "ALLCONN", &inHowLong ) ) {
TimerMgr::GetTimerMgr()->SetTimer( inHowLong, TimerMgr::GetTimerMgr()->SetTimer( inHowLong,
s_checkAllConnected, this, 0 ); s_checkAllConnected, this, 0 );
}
} }
void void

View file

@ -9,7 +9,8 @@ HEARTBEAT=60
# How long after the first connection on a cookie until we need to # How long after the first connection on a cookie until we need to
# have heard from all players in the game? After this long passes we # have heard from all players in the game? After this long passes we
# kill the connection after notifying all that have connected. # kill the connection after notifying all that have connected.
ALLCONN=300 # Default -- if not set -- is an infinite timeout.
# ALLCONN=300
# How many worker threads in the thread pool? Default is five. # How many worker threads in the thread pool? Default is five.
NTHREADS=3 NTHREADS=3