]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: fd: do not use the FD_POLL_* flags in the pollers anymore
authorWilly Tarreau <w@1wt.eu>
Fri, 6 Sep 2019 17:05:50 +0000 (19:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 Sep 2019 17:09:56 +0000 (19:09 +0200)
commit6b3089856f47eec05a41bf7ba35e5ccdcaf8ce59
tree8e1f36d5270eb9b5bc9bac5c984b2fa98cb2ce74
parent77abb43ed13d25894bf635aa56b13fb85cdbd4f8
MEDIUM: fd: do not use the FD_POLL_* flags in the pollers anymore

As mentioned in previous commit, these flags do not map well to
modern poller capabilities. Let's use the FD_EV_*_{R,W} flags instead.
This first patch only performs a 1-to-1 mapping making sure that the
previously reported flags are still reported identically while using
the closest possible semantics in the pollers.

It's worth noting that kqueue will now support improvements such as
returning distinctions between shut and errors on each direction,
though this is not exploited for now.
include/proto/fd.h
src/ev_epoll.c
src/ev_evports.c
src/ev_kqueue.c
src/ev_poll.c
src/ev_select.c