]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] check if rise/fall has an argument and it is > 0
authorKrzysztof Piotr Oledzki <ole@ans.pl>
Sun, 27 Sep 2009 14:17:31 +0000 (16:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 1 Oct 2009 08:17:38 +0000 (10:17 +0200)
commit08ff959c3eaaac89efb38f249f095a8b0d04ef47
tree764deb2d4b7c113b534f3ce3e508d88c54e7c2d2
parent213014e587d63d868fd54346b1a9bd228cdd24ca
[BUG] check if rise/fall has an argument and it is > 0

Check if rise/fall has an argument and it is > 0  or bad things may happen
in the health checks. ;)

Now it is verified and the code no longer allows for such condition:

backend bad
(...)
        server o-f0 192.168.129.27:80 check inter 4000 source 0.0.0.0 rise 0
        server o-r0 192.168.129.27:80 check inter 4000 source 0.0.0.0 fall 0
        server o-f1 192.168.129.27:80 check inter 4000 source 0.0.0.0 rise
        server o-r1 192.168.129.27:80 check inter 4000 source 0.0.0.0 fall

[ALERT] 269/161830 (24136) : parsing [../git/haproxy.cfg:98]: 'rise' has to be > 0.
[ALERT] 269/161830 (24136) : parsing [../git/haproxy.cfg:99]: 'fall' has to be > 0.
[ALERT] 269/161830 (24136) : parsing [../git/haproxy.cfg:100]: 'rise' expects an integer argument.
[ALERT] 269/161830 (24136) : parsing [../git/haproxy.cfg:101]: 'fall' expects an integer argument.

Also add endline in the custom id checking code.
src/cfgparse.c