BUG/MEDIUM: checks: Don't add a tcpcheck ruleset twice in the shared tree
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 29 May 2020 06:10:50 +0000 (08:10 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 29 May 2020 06:20:17 +0000 (08:20 +0200)
commit56192cc60b786f2c82925411d8b2ccd7d9f97d84
treea9b64b54c48d81878b1d09de57d7e75f983f2751
parent78675252fb6ce195c145afd2862fa53087bf585f
BUG/MEDIUM: checks: Don't add a tcpcheck ruleset twice in the shared tree

When a tcpcheck ruleset is created, it is automatically inserted in a global
tree. Unfortunately for applicative health checks (redis, mysql...), the created
ruleset is inserted a second time during the directive parsing. The leads to a
infinite loop when haproxy is stopped when we try to scan the tree to release
all tcpcheck rulesets.

Now, only the function responsible to create the tcpcheck ruleset insert it into
the tree.

No backport needed.
src/checks.c