]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] task: fix possible timer drift after update
authorWilly Tarreau <w@1wt.eu>
Tue, 14 Jul 2009 21:48:55 +0000 (23:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 14 Jul 2009 21:54:12 +0000 (23:54 +0200)
commit4de2dea8076782d0685cd1f25edfb961d3a9d40c
tree154ab55d19b9e2d9f79174024e786c63124c04ce
parent7cf930b2ddcfb0a79d1c84fd85cdf3d0dbbf726c
[BUG] task: fix possible timer drift after update

When the scheduler detected that a task was misplaced in the timer
queue, it used to place it right again. Unfortunately, it did not
check whether it would still call the new task from its new place.
This resulted in some tasks not getting called on timeout once in
a while, causing a minor drift for repetitive timers. This effect
was only observable with slow health checks and without any activity
because no other task would cause the scheduler to be immediately
called again.

In practice, it does not affect any real-world configuration, but
it's still better to fix it.
(cherry picked from commit 814c978fb67782ceeaf1db74abfe7083938bedff)
src/task.c