]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
try to add resonable warning if client connections vanished
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 22 May 2013 08:48:17 +0000 (10:48 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 22 May 2013 08:54:21 +0000 (10:54 +0200)
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

index 1f0ed5c912e903ebfb7da2bd023aefb5e7f48a4c..545d64b6f039bb8c1a02283aa4b3671985510454 100755 (executable)
@@ -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};