]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: fd: Always reset the polled_mask bits in fd_dodelete().
authorOlivier Houchard <ohouchard@haproxy.com>
Mon, 5 Aug 2019 16:51:52 +0000 (18:51 +0200)
committerOlivier Houchard <cognet@ci0.org>
Mon, 5 Aug 2019 16:55:04 +0000 (18:55 +0200)
commitc22580c2cce86473221f58cf11db19056a5f2f7c
tree2d6e14913bd6bdafa7544b20bfccdd4c662777f4
parent214758211eba0e542e07a03790ee00c3cd72dd3a
BUG/MEDIUM: fd: Always reset the polled_mask bits in fd_dodelete().

In fd_dodelete(), always reset the polled_mask bits, instead on only doing
it if we're closing the file descriptor. We call the poller clo() method
anyway, and failing to do so means that if fd_remove() is used while the
fd is polled, the poller won't attempt to poll on a fd with the same value
as the old one.
This leads to fd being stuck in the SSL code while using the async engine.

This should be backported to 2.0, 1.9 and 1.8.
src/fd.c