]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MINOR] config: allow "slowstart 0s"
authorWilly Tarreau <w@1wt.eu>
Fri, 26 Mar 2010 09:40:49 +0000 (10:40 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 26 Mar 2010 09:40:49 +0000 (10:40 +0100)
Sometimes it's useful to be able to disable slowstart by setting "slowstart 0".

src/cfgparse.c

index f21c2782ea8c8dd3a5a1e4465335eca17f09e231..bddb6e73053294fa99ecad22cd834e77d74c5f6b 100644 (file)
@@ -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;