]> git.kaiwu.me - haproxy.git/commit
MEDIUM: tcpcheck: Refactor how tcp-check rulesets are stored
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 26 Mar 2026 07:56:29 +0000 (08:56 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 1 Apr 2026 14:34:37 +0000 (16:34 +0200)
commitdc7c8bd2f81b0ecb730f4b290430ff7242c63c67
tree3470d790e3b0d5fcc2af16b6cf7439f5eca9e017
parent949aa368209ea4645faf6c388ec346a5eb7033f2
MEDIUM: tcpcheck: Refactor how tcp-check rulesets are stored

The tcpcheck_rules structure is replaced by the tcpcheck structure. The main
difference is that the ruleset is now referenced in the tcpcheck structure,
instead of the rules list. The flags about the ruleset type are moved into
the ruleset structure and flags to track unused rules remains on the
tcpcheck structure. So it should be easier to track unused rulesets. But it
should be possible to configure a set of tcpcheck rules outside of the proxy
scope.

The main idea of these changes is to prepare the parsing of a new
healthcheck section. So this patch is quite huge, but it is mainly about
renaming some fields.
include/haproxy/check-t.h
include/haproxy/proxy-t.h
include/haproxy/tcpcheck-t.h
include/haproxy/tcpcheck.h
src/cfgdiag.c
src/check.c
src/connection.c
src/proxy.c
src/server.c
src/tcpcheck.c