From 3f4ee3159391a9ed0395b0b87d15a5fc2a3e77e6 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Fri, 20 Nov 2020 16:50:09 +0100 Subject: [PATCH 1/2] increase upload timeout back to 1 hour --- src/proxy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proxy.rs b/src/proxy.rs index 1e1be0c..17f9aca 100644 --- a/src/proxy.rs +++ b/src/proxy.rs @@ -18,7 +18,7 @@ use std::time::Duration; const CONNECT_TIMEOUT: Duration = Duration::from_secs(1); const RESPONSE_TIMEOUT: Duration = Duration::from_secs(5); -const UPLOAD_TIMEOUT: Duration = Duration::from_secs(3 * 60); +const UPLOAD_TIMEOUT: Duration = Duration::from_secs(60 * 60); static FORWARD_REQUEST_HEADERS_TO_REMOVE: [header::HeaderName; 4] = [ // Connection settings (keepalived) must not be resend From 4f165830edd63f8611f4f7dae5b4bad708f15cbf Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Mon, 23 Nov 2020 09:51:46 +0100 Subject: [PATCH 2/2] increase response timeout to 30s --- src/proxy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proxy.rs b/src/proxy.rs index 17f9aca..8f113f0 100644 --- a/src/proxy.rs +++ b/src/proxy.rs @@ -17,7 +17,7 @@ use sodiumoxide::crypto::secretstream::xchacha20poly1305::{ABYTES, HEADERBYTES}; use std::time::Duration; const CONNECT_TIMEOUT: Duration = Duration::from_secs(1); -const RESPONSE_TIMEOUT: Duration = Duration::from_secs(5); +const RESPONSE_TIMEOUT: Duration = Duration::from_secs(30); const UPLOAD_TIMEOUT: Duration = Duration::from_secs(60 * 60); static FORWARD_REQUEST_HEADERS_TO_REMOVE: [header::HeaderName; 4] = [