From: Willy Tarreau Date: Mon, 17 Sep 2007 09:12:40 +0000 (+0200) Subject: [MEDIUM] pre-initialize timeouts to infinity, not zero X-Git-Tag: v1.3.12.2~5 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=d6f1c6c46f5bea82e851f0f08098ddc50435dbd0;p=haproxy.git [MEDIUM] pre-initialize timeouts to infinity, not zero Since the timers have been changed, the timeouts for the default instance have not been adjusted. This results in unspecified timeouts becoming zero instead of infinite. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index 98dba978d..8c9c2c65a 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -468,6 +468,10 @@ static void init_default_instance() defproxy.maxconn = cfg_maxpconn; defproxy.conn_retries = CONN_RETRIES; defproxy.logfac1 = defproxy.logfac2 = -1; /* log disabled */ + tv_eternity(&defproxy.clitimeout); + tv_eternity(&defproxy.contimeout); + tv_eternity(&defproxy.srvtimeout); + tv_eternity(&defproxy.appsession_timeout); } /*