commit | 1c07b0755df77d5e9c867694c73c9338150a746a | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Jan 07 16:19:18 2013 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Mon Jan 07 16:39:47 2013 +0100 |
tree | 3d34be0659e6fc654d29114ecef6e75a01e0152a | |
parent | 6747e27667402af0a7fa56eb90e2ac0a9f660333 [diff] |
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.