]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: fd: Don't modify the update_mask in fd_dodelete().
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 19 Jun 2018 17:18:43 +0000 (19:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 20 Jun 2018 08:21:44 +0000 (10:21 +0200)
commitd0e60d852a2896d1811f10cbac1c7145f0c2159f
tree57ffaeb576c779001d3f8f17416d3fb9dfca9680
parenta8cf95d629a45feb94208e6412ddea61e0480767
BUG/MEDIUM: fd: Don't modify the update_mask in fd_dodelete().

Only the pollers should remove bits in the update_mask. Removing it will
mean if the fd is currently in the global update list, it will never be
removed, and while it's mostly harmless in 1.9, in 1.8, only update_mask
is checked to know if the fd is already in the list or not, so we can end
up trying to add a fd that is already in the list, and corrupt it, which
means some fd may not be added to the poller.

This should be backported to 1.8.
src/fd.c