commit | 3c8a89642d6d8b3f098daaff24edcb5aa23e58a0 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Mar 13 17:14:51 2017 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue Mar 21 16:30:44 2017 +0100 |
tree | f736bd841db1908f59796cf82b4dc47641647ab9 | |
parent | 68128710d00c871495317cfb84e177ef34584fc2 [diff] |
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.