[pve-devel] [PATCH v1 http-server 2/2] AnyEvent: disable upload timeout

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Apr 22 18:54:59 CEST 2022


On 22.04.22 16:43, Matthias Heiserer wrote:
> During some testing, I had various requests time out.
> Bug reports describing that behaviour include #795 from 2015
> and #66 from 2011.
> While disabling the timeout is certainly not ideal, it should fix this
> issue for now.
> Alternatively, a long timout could be set (e.g. 60 seconds).

what is the current timeout value?

> 
> Signed-off-by: Matthias Heiserer <m.heiserer at proxmox.com>
> ---
>  src/PVE/APIServer/AnyEvent.pm | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/PVE/APIServer/AnyEvent.pm b/src/PVE/APIServer/AnyEvent.pm
> index ade3c05..c143fb4 100644
> --- a/src/PVE/APIServer/AnyEvent.pm
> +++ b/src/PVE/APIServer/AnyEvent.pm
> @@ -1500,6 +1500,7 @@ sub unshift_read_header {
>  			    outfh => $outfh,
>  			};
>  			$reqstate->{tmpfilename} = $tmpfilename;
> +			$reqstate->{hdl}->{timeout} = 0;
>  			$reqstate->{hdl}->on_read(sub {
>  			    $self->file_upload_multipart($reqstate, $auth, $method, $path, $state);
>  			});






More information about the pve-devel mailing list