]> 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:48:55 +0000 (23:48 +0200)
commit814c978fb67782ceeaf1db74abfe7083938bedff
tree1c21a76e3476916ffb9600ae0abc1b1f2424663b
parent606ad73e73600275aae944f00bda4af9976c0be8
[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.
src/task.c