]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: tcpcheck: Properly report error for http health-checks
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 4 May 2026 05:52:41 +0000 (07:52 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 4 May 2026 14:33:56 +0000 (16:33 +0200)
commite46090f4244ae94edc15a769b4ba0fb23d7b7418
tree12a30b8d686495d3c775cb625bd5a44b651c27e0
parent4ef31cb5c2ddef6e240b70e15591e575beaca58c
BUG/MINOR: tcpcheck: Properly report error for http health-checks

When an error is reported on an expect rule for tcp and http health-checks,
a dedicated message is reported with details about the wrong match. However,
this was never performed for HTTP health-check because of the wrong test on
the check type.

In addition, when an error was reported on an "expect hdr" rule, a break
statement was missing. So the error message could be truncated (but never
emitted because of the issue above).

This patch should be backported to all stable versions.
src/tcpcheck.c