]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: kqueue: only set FD_POLL_IN when there are pending data
authorWilly Tarreau <w@1wt.eu>
Mon, 13 Mar 2017 19:49:56 +0000 (20:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 21 Mar 2017 15:35:17 +0000 (16:35 +0100)
commitfa0617660a9f288caade3c00382fbe3b3c2ffa6d
tree5adef45949c9455e5808753b51f0eb47953b92c0
parent19c4ab97c10b75b69d02bf7ebb6c2c3331d7bd83
MEDIUM: kqueue: only set FD_POLL_IN when there are pending data

Let's avoid setting FD_POLL_IN when there's no pending data. It will
save a useless recv() syscall on pure closes.
src/ev_kqueue.c