]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: check: only try connection reuse for http-check rulesets
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 29 Oct 2025 15:20:11 +0000 (16:20 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 14 Nov 2025 09:44:03 +0000 (10:44 +0100)
commit5d021c028eb5a2cec2af844cc597b69d39fc12c8
tree5602edfa2ba87fd4f071182d5cd4387956c61bcc
parentd92f8f84fb957fc043edf22aa6d4694592400125
BUG/MINOR: check: only try connection reuse for http-check rulesets

In 3.2, a new server keyword "check-reuse-pool" has been introduced. It
allows to reuse a connection for a new check, instead of always
initializing a new one. This is only performed if the check does not
rely on specific connection parameters differing from the server.

This patch further restricts reuse for checks only when an HTTP ruleset
is used at the backend level. Indeed, reusing a connection outside of
HTTP is an undefined behavior. The impact of this bug is unknown and
depends on the proxy/server configuration. In the case of an HTTP
backend with non-HTTP checks, check-reuse-pool would probably cause a
drop in reuse rate.

Along this change, implement a new diagnostic warning on servers to
report that check-reuse-pool cannot apply due to an incompatible check
type.

This must be backported up to 3.2.
doc/configuration.txt
src/cfgdiag.c
src/tcpcheck.c