[pve-devel] [PATCH v1 http-server 2/2] AnyEvent: disable upload timeout
Matthias Heiserer
m.heiserer at proxmox.com
Fri Apr 22 16:43:58 CEST 2022
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).
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);
});
--
2.30.2
More information about the pve-devel
mailing list