]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: peers: don't fail twice to grab the update lock
authorWilly Tarreau <w@1wt.eu>
Wed, 3 Sep 2025 09:54:45 +0000 (11:54 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 3 Sep 2025 13:51:13 +0000 (15:51 +0200)
commit2421c3769ac832933fb3581f6f6e03048ff4bb14
tree2b59aec68806534659db137e0fb05040e8346840
parent324f0a60aba52ed5d80b714bf4b6f0b819efd12e
BUG/MEDIUM: peers: don't fail twice to grab the update lock

When the expire task is running fast (i.e. running almost alone), it's
super hard to grab the update lock and peers can easily trigger the
watchdog because the time it takes to grab this lock is multiplied by
the number of updates to perform. This is easier to trigger at the end
of an injection session where the expire task is omni-present. Let's
just record that we failed once and don't fail a second time in the
loop.

This should be backported to 3.2, but probably not further given that
this area changed significantly in 3.2.
src/peers.c