]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: epoll: permit to mask certain specific events
authorWilly Tarreau <w@1wt.eu>
Mon, 27 Jan 2025 14:41:26 +0000 (15:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 27 Jan 2025 14:47:46 +0000 (15:47 +0100)
commit7fa70da06db3e69a61e4451a82a4f980b40b4d0c
tree947cf1f9a9f779e30b96a848510913a8ea1bf868
parente768a531b753ce4b49f8a05eed26b4a5d2a30e63
MINOR: epoll: permit to mask certain specific events

A few times in the past we've seen cases where epoll was caught reporting
a wrong event that caused trouble (e.g. spuriously reporting HUP or RDHUP
after a successful connect()). The new tune.epoll.mask-events directive
permits to mask events such as ERR, HUP and RDHUP and convert them to IN
events that are processed by the regular receive path. This should help
better diagnose and troubleshoot issues such as this one, as well as rule
out such a cause when similar issues are reported:

   https://github.com/haproxy/haproxy/issues/2368
   https://www.spinics.net/lists/netdev/msg876470.html

It should be harmless to backport this if necessary.
doc/configuration.txt
src/ev_epoll.c