]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: listener/threads: always use atomic ops to clear the FD events
authorWilly Tarreau <w@1wt.eu>
Tue, 10 Dec 2019 07:37:04 +0000 (08:37 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Dec 2019 09:43:31 +0000 (10:43 +0100)
commit7cdeb61701729ef7b4d2ed97e590860478ad718d
tree124653f380bb25fd67871042c7fc65bc8186ef70
parent67878d7bdcb88683bdbf6fba851901a31f348eb8
BUG/MINOR: listener/threads: always use atomic ops to clear the FD events

There was a leftover of the single-threaded era when removing the
FD_POLL_HUP flag from the listeners. By not using an atomic operation
to clear the flag, another thread acting on the same listener might
have lost some events, though this would have resulted in that thread
to reprocess them immediately on the next loop pass.

This should be backported as far as 1.8.
src/listener.c