mirror of
https://git.proxmox.com/git/pve-http-server
synced 2025-05-02 14:26:21 +00:00
avoid warnings when clients disconnects early
This commit is contained in:
parent
84df857fba
commit
133e058609
@ -146,10 +146,11 @@ sub client_do_disconnect {
|
||||
sub finish_response {
|
||||
my ($self, $reqstate) = @_;
|
||||
|
||||
my $hdl = $reqstate->{hdl};
|
||||
|
||||
cleanup_reqstate($reqstate);
|
||||
|
||||
my $hdl = $reqstate->{hdl};
|
||||
return if !$hdl; # already disconnected
|
||||
|
||||
if (!$self->{end_loop} && $reqstate->{keep_alive} > 0) {
|
||||
# print "KEEPALIVE $reqstate->{keep_alive}\n" if $self->{debug};
|
||||
$hdl->on_read(sub {
|
||||
|
Loading…
Reference in New Issue
Block a user