]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: haload: fix spurious task wakeup in hld_strm_task()
authorFrederic Lecaille <flecaille@haproxy.com>
Tue, 7 Jul 2026 14:00:47 +0000 (16:00 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Wed, 8 Jul 2026 06:27:28 +0000 (08:27 +0200)
commit1e1e780b7916a29fda9d65938591c92fbd6bf481
tree6f1b57ea1610ec7e0263c2c07c0d12525b13d52d
parentb81e2715679072e9749246867d85dc6f04139332
BUG/MINOR: haload: fix spurious task wakeup in hld_strm_task()

When a stream is freed, hld_strm_task() was unconditionally re-queuing
the user task, even when no streams were left or when no update was
needed. This caused spurious task wakeups, which could incorrectly inflate
connection and request rate counters to come for the -R option implementation.

Only queue the user task if there are remaining streams to process, and
properly update the expiration time.

No need to backport. haload arrived with this current version.
src/haload.c