]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stick-tables: don't wait indefinitely in stktable_add_pend_updates()
authorWilly Tarreau <w@1wt.eu>
Tue, 9 Sep 2025 15:44:46 +0000 (17:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 9 Sep 2025 15:56:37 +0000 (17:56 +0200)
commitd5e7fba5c035a5a2b5f1136be2d2de70d529b118
treeb45fe088773aa1523541714d1ba3747f015fecb8
parenta771b14541528a96060d1b711fcd7c94e9f0cfbf
MEDIUM: stick-tables: don't wait indefinitely in stktable_add_pend_updates()

This one doesn't need to wait forever, if it cannot work it can postpone
it. When building with a high value of STKTABLE_MAX_UPDATES_AT_ONCE (1000),
it's still possible to trigger warnings in this function on the write lock
that is contended by peers and expiration. Changing it for a trylock resolves
the issue.

This should be backported to 3.2 after a bit of testing.
src/stick_table.c