From: Willy Tarreau Date: Fri, 26 Mar 2010 09:40:49 +0000 (+0100) Subject: [MINOR] config: allow "slowstart 0s" X-Git-Tag: v1.4.3~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4554bc189dc9acba143b1cfc788841134bf88111;p=thirdparty%2Fhaproxy.git [MINOR] config: allow "slowstart 0s" Sometimes it's useful to be able to disable slowstart by setting "slowstart 0". --- diff --git a/src/cfgparse.c b/src/cfgparse.c index f21c2782ea..bddb6e7305 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -3305,7 +3305,7 @@ stats_error_parsing: err_code |= ERR_ALERT | ERR_FATAL; goto out; } - if (val <= 0) { + if (val < 0) { Alert("parsing [%s:%d]: invalid value %d for argument '%s' of server %s.\n", file, linenum, val, args[cur_arg], newsrv->id); err_code |= ERR_ALERT | ERR_FATAL;