[PATCH] 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)
committerVincent Bernat <bernat@debian.org>
Sun, 15 Aug 2021 20:42:57 +0000 (21:42 +0100)
commit3dfff31ed087b28f7060f84d7d006d78d2c9e557
tree6a345991212964117fe9db0e21d8e7092d75b37d
parent96e9acd3b51e1787e68e5c13df6c987062c49bf5
[PATCH] 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>
(cherry picked from commit 789bbdc88d7ffe8f520532efb18148ea52ede4ca)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
Gbp-Pq: Name 0001-BUG-MINOR-tcpcheck-Update-.health-threshold-of-agent.patch
src/tcpcheck.c