]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MEDIUM] pre-initialize timeouts to infinity, not zero
authorWilly Tarreau <w@1wt.eu>
Mon, 17 Sep 2007 09:12:40 +0000 (11:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 15 Oct 2007 07:32:11 +0000 (09:32 +0200)
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.

src/cfgparse.c

index c1eec25ccbc9ba138e05dcbfc074bcfb1e9b178a..e361356bdffa5d85f92acf3f4b56dab879c4f29c 100644 (file)
@@ -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);
 }
 
 /*