]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: checks: Reschedule check on observe mode only if fastinter is set
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 7 May 2021 09:45:26 +0000 (11:45 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 7 May 2021 10:10:30 +0000 (12:10 +0200)
commitea860837183c4800c97d6e8e7fb417d8f1ab2ef0
tree85c48f9d9bd78bc14c59be4a74830e3e57aa4871
parent92017a3215545c26cd9baad11a1cdfb2859acc6c
BUG/MINOR: checks: Reschedule check on observe mode only if fastinter is set

On observe mode, if a server is marked as DOWN, the server's health-check is
rescheduled using the fastinter timeout if the new expiration date is newer
that the current one. But this must only be performed if the fastinter
timeout is defined.

Internally, tick_is_lt() function only checks the date and does not perform any
verification on the provided args. Thus, we must take care of it. However, it is
possible to disable the server health-check by setting its task expiration date
to TICK_ETERNITY.

This patch must be backported as far as 2.2. It is related to
src/check.c