]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: threads/stick-tables: close a race condition on stktable_trash_expired()
authorWilly Tarreau <w@1wt.eu>
Sun, 5 Nov 2017 10:04:47 +0000 (11:04 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 5 Nov 2017 10:04:47 +0000 (11:04 +0100)
commit4d5f13cab3411cae504d579c4011a6707f133580
tree9a152e2024176778c07e0d3328c657172bf2a517
parent03071f69377f94fbe69f6ca00f10f4313432edf1
BUG/MEDIUM: threads/stick-tables: close a race condition on stktable_trash_expired()

The spin_unlock() was called just before setting the expiry to
TICK_ETERNITY, so if another thread has the time to perform its
update and set a timeout, this would would clear it.
src/stick_table.c