]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: server-state: Fix expiration date of srvrq_check tasks
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 11 Dec 2024 08:23:28 +0000 (09:23 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 11 Dec 2024 09:00:01 +0000 (10:00 +0100)
commit647a2906626e9c3d9c3349d338a35798325496f2
tree8f9a29010c58a9b5eb8b8bfde6ecc985e87b1a14
parente1525e7b8fa15c59c1c6fc4063b5218d134b7afb
BUG/MINOR: server-state: Fix expiration date of srvrq_check tasks

"hold.timeout" was used as expiration date for srvrq_check tasks. But it is
not accurrate. The expiration date must be based on the resolution timeouts
instead (resolve and retry).

The purpose of srvrq_check task is to clean up the server resolution status
when outdated info are inherited from the state file. Using "hold.timeout"
is not accurrate here because hold timeouts concern the resolution response
items not the resolution status of servers. It may be set to a huge value or
0. The expiration date of these tasks must be based on the resolution
timeouts instead.

So now the ("timeout resolve" + resolve_retries * "timeout retry") value is
used.

This patch should fix the issue #2816. It must be backported to all stable
versions.
src/server_state.c