]> git.kaiwu.me - haproxy.git/commit
MINOR: tcpcheck: evaluate custom expect rules on empty response when allowed
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Nov 2026 14:28:55 +0000 (15:28 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 23 Nov 2026 13:50:40 +0000 (14:50 +0100)
commitc57a1d92aa48eb708e13f78fbb62aa8de837c992
tree884f60077de48eee52056fe16e73aadbd53b9e6a
parentd1880eefdb5f861ff86a1da1882c69c54e30c116
MINOR: tcpcheck: evaluate custom expect rules on empty response when allowed

The custom expect functions are not evaluated when the response
buffer is empty. When the TCPCHK_EXPT_FL_ALLOW_EMPTY flag is set
on the rule, the function is now called with an empty buffer, on
the condition it properly handles this situation. It is useful
when the connection closure by the server is itself a valid
result.
src/tcpcheck.c