]> git.kaiwu.me - haproxy.git/commit
MINOR: tcpcheck: add TCPCHK_EXPT_FL_ALLOW_EMPTY flag on expect rules
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Nov 2026 14:27:35 +0000 (15:27 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 23 Nov 2026 13:50:40 +0000 (14:50 +0100)
commitd1880eefdb5f861ff86a1da1882c69c54e30c116
treef7a4f5e27944c47b4f7ada67ae6a49bbea127644
parentf4a1595d362b1c17121891a102caf3f3eddcd13d
MINOR: tcpcheck: add TCPCHK_EXPT_FL_ALLOW_EMPTY flag on expect rules

Custom expect functions are not evaluated when the response buffer is
empty. With the new TCPCHK_EXPT_FL_ALLOW_EMPTY flag, a custom expect
rule can be evaluated with an empty response, on the condition the
custom function properly handles this situation. It is useful when
the connection closure by the server is itself a valid result.
include/haproxy/tcpcheck-t.h