MINOR: check: allocate default check ruleset for every backends
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 23 Jul 2021 13:46:46 +0000 (15:46 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 6 Aug 2021 09:08:04 +0000 (11:08 +0200)
commitf2c27a5c67d90ad82e27829278c775c0ea22abde
tree6a49bb8fc7d39b08020f201c2b90ffa8893ebc60
parentfca18172d9d5691ab9bf631321da780c69f56dde
MINOR: check: allocate default check ruleset for every backends

Allocate default tcp ruleset for every backend without explicit rules
defined, even if no server in the backend use check. This change is
required to implement checks for dynamic servers.

This allocation is done on check_config_validity. It must absolutely be
called before check_proxy_tcpcheck (called via post proxy check) which
allocate the implicit tcp connect rule.
src/cfgparse.c
src/check.c