mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-25 20:05:21 +00:00
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.
This commit is contained in:
parent
1e53b5b3f6
commit
17c8ec6486
@ -334,6 +334,11 @@ sub proxy_request {
|
|||||||
|
|
||||||
undef $w;
|
undef $w;
|
||||||
|
|
||||||
|
if (!$reqstate->{hdl}) {
|
||||||
|
warn "proxy detected vanished client connection\n";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
eval {
|
eval {
|
||||||
my $code = delete $hdr->{Status};
|
my $code = delete $hdr->{Status};
|
||||||
my $msg = delete $hdr->{Reason};
|
my $msg = delete $hdr->{Reason};
|
||||||
|
Loading…
Reference in New Issue
Block a user