]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: fd: always remove late updates when freeing fd_updt[]
authorWilly Tarreau <w@1wt.eu>
Tue, 26 Jul 2022 17:06:17 +0000 (19:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 26 Jul 2022 17:06:17 +0000 (19:06 +0200)
commitb9831458374ba4bdba52aebe77a4005dcf59636d
tree0609b058b3d351bb6266f533c7a24ce4b129b216
parentc31577f32e0094010516a923e9f5e8cc23c23d43
BUG/MINOR: fd: always remove late updates when freeing fd_updt[]

Christopher found that since commit 8e2c0fa8e ("MINOR: fd: delete unused
updates on close()") we may crash in a late stop due to an fd_delete()
in the main thread performed after all threads have deleted the fd_updt[]
array. Prior to that commit that didn't happen because we didn't touch
the updates on this path, but now it may happen. We don't care about these
ones anyway since the poller is stopped, so let's just wipe them by
resetting their counter before freeing the array.

No backport is needed as this is only 2.7.
src/fd.c