raise reqwest client timeout to 300 seconds
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
@@ -538,7 +538,7 @@ fn reqwest_client_builder(config: &Config) -> Result<reqwest::ClientBuilder> {
|
|||||||
let mut reqwest_client_builder = reqwest::Client::builder()
|
let mut reqwest_client_builder = reqwest::Client::builder()
|
||||||
.pool_max_idle_per_host(0)
|
.pool_max_idle_per_host(0)
|
||||||
.connect_timeout(Duration::from_secs(60))
|
.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()? {
|
if let Some(proxy) = config.proxy.to_proxy()? {
|
||||||
reqwest_client_builder = reqwest_client_builder.proxy(proxy);
|
reqwest_client_builder = reqwest_client_builder.proxy(proxy);
|
||||||
|
|||||||
Reference in New Issue
Block a user