BUG/MINOR: tcpcheck: Update .health threshold of agent inside an agent-check
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Mar 2021 08:06:07 +0000 (09:06 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Mar 2021 10:09:19 +0000 (11:09 +0100)
commit789bbdc88d7ffe8f520532efb18148ea52ede4ca
tree4fec02698e219512e0e4251a835d96d653f63614
parent1b89c27781fce9ac83d9bc4d83bcc999bce4e5a0
BUG/MINOR: tcpcheck: Update .health threshold of agent inside an agent-check

If an agent-check is configured for a server, When the response is parsed,
the .health threshold of the agent must be updated on up/down/stopped/fail
command and not the threshold of the health-check. Otherwise, the
agent-check will compete with the health-check and may mark a DOWN server as
UP.

This patch should fix the issue #1176. It must be backported as far as 2.2.

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