From 4bc06bfc0b72b92c67f21ac0dc7de7d67be73728 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Sat, 6 Aug 2016 04:11:16 -0400 Subject: [core] check if client half-closed TCP if POLLHUP (#2743) Check if client half-closed TCP connection if POLLHUP is received. This more robustly handles if client called shutdown(fd, SHUT_WR). This patch reverts commit:ab05eb7c which should now be handled properly. (Time will tell.) x-ref: "1.4.40/41 mod_proxy, mod_scgi may trigger POLLHUP on *BSD,Darwin" https://redmine.lighttpd.net/issues/2743 --- tests/LightyTest.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/LightyTest.pm') diff --git a/tests/LightyTest.pm b/tests/LightyTest.pm index b975d651..129acd87 100644 --- a/tests/LightyTest.pm +++ b/tests/LightyTest.pm @@ -223,6 +223,7 @@ sub handle_http { print $remote $_.$BLANK; diag("\n<< ".$_) if $is_debug; } + shutdown($remote, 1) if ($^O ne "openbsd"); # I've stopped writing data } else { diag("\nsending request header to ".$host.":".$self->{PORT}) if $is_debug; foreach(@request) { -- cgit v1.2.1