[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)
committerSalvatore Bonaccorso <carnil@debian.org>
Sat, 11 Feb 2023 10:40:49 +0000 (10:40 +0000)
commit1f402ed491e0bface2cf4be587d3cbaae83d4568
tree02bd33826576e8ce243eafa3a52538e667985b28
parented63224c7848eabc8f9bc4bdb199d1a67a71fd86
[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