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 08:25:45 +0000 (09:25 +0100)
commit24ec9434271345857b42cc5bd9c6b497ab01a7e4
tree34be3b26b12a1b36f17c929fa040e66ec602616b
parent5647fbacdf822f2a6812a07dbdf27660f436f103
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.
src/tcpcheck.c