From 4554bc189dc9acba143b1cfc788841134bf88111 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 26 Mar 2010 10:40:49 +0100 Subject: [PATCH] [MINOR] config: allow "slowstart 0s" Sometimes it's useful to be able to disable slowstart by setting "slowstart 0". --- src/cfgparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cfgparse.c b/src/cfgparse.c index f21c2782e..bddb6e730 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;