]> git.proxmox.com Git - proxmox-backup.git/commitdiff
client: raise HTTP_TIMEOUT to 120s
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 24 Feb 2021 10:55:37 +0000 (11:55 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 24 Feb 2021 10:57:21 +0000 (11:57 +0100)
As 20s is really not that high, especially for loaded setups one is
connected to through a spotty network (looking at you ÖBB railnet)
and gets latency spikes of 5 - 10s for some minutes at a time..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/client/http_client.rs

index 9fd1c013abe7b13d37679d0a07f2ba41d51bff26..76ab039158510829626b2508c9f35dae6e5dbc6f 100644 (file)
@@ -30,8 +30,8 @@ use crate::tools::{
 };
 
 /// Timeout used for several HTTP operations that are expected to finish quickly but may block in
-/// certain error conditions.
-const HTTP_TIMEOUT: Duration = Duration::from_secs(20);
+/// certain error conditions. Keep it generous, to avoid false-positive under high load.
+const HTTP_TIMEOUT: Duration = Duration::from_secs(2 * 60);
 
 #[derive(Clone)]
 pub struct AuthInfo {