From 17c8ec6486e5ad976f8bf6ddb541a8e1260f3fd5 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 22 May 2013 10:48:17 +0200 Subject: [PATCH] try to add resonable warning if client connections vanished The proxy call is done async, so the original connection can be closed already. This just adds a reasonable warning message. We can remove the message later if that turns out to work as expected. --- PVE/HTTPServer.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PVE/HTTPServer.pm b/PVE/HTTPServer.pm index 1f0ed5c9..545d64b6 100755 --- a/PVE/HTTPServer.pm +++ b/PVE/HTTPServer.pm @@ -334,6 +334,11 @@ sub proxy_request { undef $w; + if (!$reqstate->{hdl}) { + warn "proxy detected vanished client connection\n"; + return; + } + eval { my $code = delete $hdr->{Status}; my $msg = delete $hdr->{Reason};