From eec0b41ea97757051ae4e42b1d3fd17585e509ca 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);