]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: epoll: make use of EPOLLRDHUP
authorWilly Tarreau <w@1wt.eu>
Mon, 7 Jan 2013 15:19:18 +0000 (16:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 7 Jan 2013 15:39:47 +0000 (16:39 +0100)
commit1c07b0755df77d5e9c867694c73c9338150a746a
tree3d34be0659e6fc654d29114ecef6e75a01e0152a
parent6747e27667402af0a7fa56eb90e2ac0a9f660333
OPTIM: epoll: make use of EPOLLRDHUP

epoll may report pending shutdowns using EPOLLRDHUP. Since this
flag is missing from a number of libcs despite being available
since kernel 2.6.17, let's define it ourselves.

Doing so saves one syscall by allow us to avoid the read()==0 when
the server closes with the respose.
src/ev_epoll.c