[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)
committerRaspbian forward porter <root@raspbian.org>
Thu, 9 Sep 2021 16:57:32 +0000 (17:57 +0100)
commit5ac9c971ccf866737707478973aaae2a83d36c12
tree1b61eac372537b04bb5f256b1eab7c8ec23ede9e
parent7f5b7538ebb09c52b0e91459fa49cb4c779df790
[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