From 2161630b5437912180689a9879fee491ce5a1427 Mon Sep 17 00:00:00 2001 From: strawberry Date: Sat, 6 Jan 2024 15:06:07 -0500 Subject: [PATCH] raise reqwest client timeout to 300 seconds Signed-off-by: strawberry --- src/service/globals/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/service/globals/mod.rs b/src/service/globals/mod.rs index 090b35a4..05020980 100644 --- a/src/service/globals/mod.rs +++ b/src/service/globals/mod.rs @@ -538,7 +538,7 @@ fn reqwest_client_builder(config: &Config) -> Result { let mut reqwest_client_builder = reqwest::Client::builder() .pool_max_idle_per_host(0) .connect_timeout(Duration::from_secs(60)) - .timeout(Duration::from_secs(60 * 4)); + .timeout(Duration::from_secs(60 * 5)); if let Some(proxy) = config.proxy.to_proxy()? { reqwest_client_builder = reqwest_client_builder.proxy(proxy);