]> git.kaiwu.me - haproxy.git/commit
MEDIUM: fd: add fd_poll_{recv,send} for use when explicit polling is required
authorWilly Tarreau <w@1wt.eu>
Thu, 9 Aug 2012 10:14:03 +0000 (12:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Sep 2012 19:53:11 +0000 (21:53 +0200)
commitbabd05a6c6d3a9f835b0f978c7f159d06338eb58
tree7e6ec08cce6829e3ee054068e31b7b0acd53c571
parent49b046dddf91b1056b818b4a5e80f25cc8a6df65
MEDIUM: fd: add fd_poll_{recv,send} for use when explicit polling is required

The old EV_FD_SET() macro was confusing, as it would enable receipt but there
was no way to indicate that EAGAIN was received, hence the recently added
FD_WAIT_* flags. They're not enough as we're still facing a conflict between
EV_FD_* and FD_WAIT_*. So let's offer I/O functions what they need to explicitly
request polling.
include/proto/fd.h
include/types/fd.h
src/ev_epoll.c
src/ev_kqueue.c
src/ev_poll.c
src/ev_select.c
src/ev_sepoll.c