always poll for client POLLHUP/POLLERR events (fixes #399)
commit4b0c822ed0e00a5176d4da1827024f1751d3c508
authorGlenn Strauss <gstrauss@gluelogic.com>
Mon, 11 Apr 2016 03:20:54 +0000 (10 23:20 -0400)
committerGlenn Strauss <gstrauss@gluelogic.com>
Mon, 18 Apr 2016 10:19:03 +0000 (18 06:19 -0400)
tree570ca2d11d0906940cc366a2c3ed6281780fc8de
parent8f27ff8cd4e23749ad524c52b5dd696d9de1495d
always poll for client POLLHUP/POLLERR events (fixes #399)

to detect client disconnect.  Do so even when waiting on backend,
and not polling for POLLRD or POLLWR on client connection.

This reduces unnecessary load on backends when backends are slow
to respond and client has given up waiting.

x-ref:
  "https://redmine.lighttpd.net/issues/399"
  FastCGI performance on high load
src/connections.c
src/fdevent.c
src/fdevent.h
src/mod_fastcgi.c
src/mod_proxy.c
src/mod_scgi.c
src/server.c