From fdd0f5568a2ada0e1698a8a2cf6431bae205cc06 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 17 Sep 2007 11:12:40 +0200 Subject: [PATCH] [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. --- src/cfgparse.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cfgparse.c b/src/cfgparse.c index c1eec25cc..e361356bd 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); } /*