BUG/MINOR: tcpcheck: Fix numbering of implicit HTTP send/expect rules
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 25 Jun 2021 09:37:45 +0000 (11:37 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 30 Jun 2021 16:27:25 +0000 (18:27 +0200)
commit2eafa55e72845bd7dbeb3bc117dd1fda0f54a775
tree1086243b1278daeef302cc9e3b47f89309be14ab
parent8b37d8d5cd3e6e3ac9a9aa0e01d43bf2b82030c0
BUG/MINOR: tcpcheck: Fix numbering of implicit HTTP send/expect rules

The index of the failing rule is reported in the health-check log message. The
rules index is also used in the check traces. But for implicit HTTP send/expect
rules, the index is wrong. It must be incremented by one compared to the
preceding rule.

This patch may be backported as far as 2.2.

(cherry picked from commit fa5880bd539b9069fd1b139d32cffae2bb3c2c3c)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit b3cb3221e5dabc73deec942a3475ef21289853bd)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/tcpcheck.c