]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: check: Requeue healthchecks on I/O events to handle check timeout
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 3 Jun 2025 12:50:38 +0000 (14:50 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 3 Jun 2025 13:03:30 +0000 (15:03 +0200)
commit7c788f0984623f727a71ae4aee9917ddeac1b59d
tree4362ee2d938229afc15f61c49e0cdd639edd568f
parent913b2d6c83b7b4c7a35b2cef479eb3ab1a471a01
BUG/MEDIUM: check: Requeue healthchecks on I/O events to handle check timeout

When a healthchecks is processed, once the first wakeup passed to start the
check, and as long as the expiration timer is not reached, only I/O events
are able to wake it up. It is an issue when there is a check timeout
defined.  Especially if the connect timeout is high and the check timeout is
low. In that case, the healthcheck's task is never requeue to handle any
timeout update. When the connection is established, the check timeout is set
to replace the connect timeout. It is thus possible to report a success
while a timeout should be reported.

So, now, when an I/O event is handled, the healthcheck is requeue, except if
an success or an abort is reported.

Thanks to Thierry Fournier for report and the reproducer.

This patch must be backported to all stable versions.
src/check.c