]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: checks: Add implicit tcp-check connect rule
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 26 Mar 2020 16:38:49 +0000 (17:38 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 07:39:37 +0000 (09:39 +0200)
commita202d1d4c1d73032f01bd7ccf438c5468347cffd
tree6adb7ae5ae68c58c769cec67e3e036b03000de3d
parent06d963aecaf15022df9001b0bf3e9af95b2cbdc2
MEDIUM: checks: Add implicit tcp-check connect rule

After the configuration parsing, when its validity check, an implicit tcp-check
connect rule is added in front of the tcp-check ruleset if the first non-comment
rule is not a connect one. This implicit rule is flagged to use the default
check parameter.

This means now, all tcp-check rulesets begin with a connect and are never
empty. When tcp-check healthchecks are used, all connections are thus handled by
tcpcheck_main() function.
include/types/checks.h
src/checks.c