]> git.kaiwu.me - haproxy.git/commit
MEDIUM: tcpcheck: Use small buffer if possible for healthchecks
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 19 Mar 2026 09:57:36 +0000 (10:57 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 23 Mar 2026 13:02:43 +0000 (14:02 +0100)
commita61ea0f414ec453255a8663bbf4df03bc8e16bd4
tree540b5626924d76c9676f2d321920e49a498f6d84
parentcd363e02463371f4c66d9214c517a198add9a008
MEDIUM: tcpcheck: Use small buffer if possible for healthchecks

If support for small buffers is enabled, we now try to use them for
healthcheck requests. First, we take care the tcpcheck ruleset may use small
buffers. Send rules using LF strings or too large data are excluded. The
ability to use small buffers or not are set on the ruleset. All send rules
of the ruleset must be compatible. This info is then transfer to server's
healthchecks relying on this ruleset.

Then, when a healthcheck is running, when a send rule is evaluated, if
possible, we try to use small buffers. On error, the ability to use small
buffers is removed and we retry with a regular buffer. It means on the first
error, the support is disabled for the healthcheck and all other runs will
use regular buffers.
include/haproxy/check-t.h
include/haproxy/check.h
include/haproxy/tcpcheck-t.h
src/check.c
src/tcpcheck.c