mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
Don't require a timeout waiting for a game to connect initially, and
make no timeout the default.
This commit is contained in:
parent
c15998a10a
commit
7ac98bfcfb
2 changed files with 6 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue