BUG/MINOR: tcpcheck: Report a L7OK if the last evaluated rule is a send rule
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 Jan 2021 15:56:07 +0000 (16:56 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 Jan 2021 16:31:49 +0000 (17:31 +0100)
commit8d4977ae86bf70e6834f3e28bad5876769db5b07
treed449d9445df52fa2d704fb10ada550fdbdb67b7c
parentafb93682217cd3cde4b9ba733c59ec19be659df4
BUG/MINOR: tcpcheck: Report a L7OK if the last evaluated rule is a send rule

When all rules of a tcpcheck ruleset are successfully evaluated, the right
check status must always be reported. It is true if the last evaluated rule
is an expect or a connect rule. But not if it is a send rule. In this
situation, nothing more is done until the check timeout expiration and a
L7TOUT is reported instead of a L7OK.

Now, by default, when all rules were successfully evaluated, a L7OK is
reported. When the last evaluated rule is an expect or a connect, the
behavior remains unchanged.

This patch should fix the issue #1027. It must be backported as far as 2.2.
src/tcpcheck.c