]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: servers: Only requeue servers if they are up
authorOlivier Houchard <ohouchard@haproxy.com>
Sat, 9 May 2026 17:27:12 +0000 (19:27 +0200)
committerOlivier Houchard <cognet@ci0.org>
Sat, 9 May 2026 17:06:10 +0000 (19:06 +0200)
commit2a1599297b87331ad67a8fbf37310dde1b90bd30
tree6c9d5bf3178a0b25ba721a98b0d0fbe2216f6f59
parentefb36c0dafd5c81edff6f0a2839ea8e7807aa5d4
BUG/MEDIUM: servers: Only requeue servers if they are up

In init_srv_requeue(), only attempt to run the tasklet if the server is
actually running, otherwise it will end up being queued a second time,
when the server is actually brought up, and that will lead to a
corrupted mt_list.
This can easily be reproduced by adding a dynamic server, as those start
disabled, and then enabling and disabling it a couple of times.
This should fix github issue #3360.

This should be backported up to 3.2.
src/server.c