]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: checks: do not exit tcp-checks from the middle of the loop
authorWilly Tarreau <w@1wt.eu>
Wed, 17 Jul 2019 16:48:07 +0000 (18:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 19 Jul 2019 09:03:54 +0000 (11:03 +0200)
commit2ab5c38359340c52abce3516e572b838a30b1754
tree179c15063fe2b008dad92a672f6784a0c0fc4697
parent4da05478e3a66376c2bb90c0d321f14204f2e289
BUG/MINOR: checks: do not exit tcp-checks from the middle of the loop

There's a comment above tcpcheck_main() clearly stating that no return
statement should be placed in the middle, still we did have one after
installing the mux. It looks mostly harmless though as it will only
fail to mark the server as being in error in case of allocation failure
or config issue.

This fix should be backported to 2.0 and probably 1.9 as well.
src/checks.c