commit | fa0617660a9f288caade3c00382fbe3b3c2ffa6d | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Mar 13 20:49:56 2017 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue Mar 21 16:35:17 2017 +0100 |
tree | 5adef45949c9455e5808753b51f0eb47953b92c0 | |
parent | 19c4ab97c10b75b69d02bf7ebb6c2c3331d7bd83 [diff] |
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.