]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: poll: enable support for POLLRDHUP
authorWilly Tarreau <w@1wt.eu>
Mon, 13 Mar 2017 16:14:51 +0000 (17:14 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 21 Mar 2017 15:30:44 +0000 (16:30 +0100)
commit3c8a89642d6d8b3f098daaff24edcb5aa23e58a0
treef736bd841db1908f59796cf82b4dc47641647ab9
parent68128710d00c871495317cfb84e177ef34584fc2
OPTIM: poll: enable support for POLLRDHUP

On Linux since 2.6.17 poll() supports POLLRDHUP to notify of an upcoming
hangup after pending data. Making use of it allows us to avoid a useless
recv() after short responses on keep-alive connections. Note that we
automatically enable the feature once this flag has been met first in a
poll() status. Till now it was only enabled on epoll.
src/ev_poll.c