]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: polling: some events were not set in various pollers
authorWilly Tarreau <w@1wt.eu>
Fri, 6 Jul 2012 09:16:01 +0000 (11:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Jul 2012 05:55:31 +0000 (07:55 +0200)
commit491c498d97bbe86e6ab50e4a2601767f685c09d7
tree1ad43d5a0e94953e883e574eed28159e00c8dd18
parentdae2a8a5a542e8a166b7bbb2164c666334c9fcea
BUG/MINOR: polling: some events were not set in various pollers

fdtab[].ev was only set in ev_sepoll. Unfortunately, some I/O handling
functions now rely on this, so depending on the polling mechanism, some
useless operations might have been performed, such as performing a useless
recv() when a HUP was reported.

This is a very old issue, the flags were only added to the fdtab and not
propagated into any poller. Then they were used in ev_sepoll which needed
them for the cache. It is unsure whether a backport to 1.4 is appropriate
or not.
src/ev_epoll.c
src/ev_kqueue.c
src/ev_poll.c
src/ev_select.c
src/ev_sepoll.c