raise connection pooling idle timeout to 50 seconds

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-03-20 22:17:17 -04:00 committed by June
parent 1e07f417ba
commit 2470fa91d8

View file

@ -501,7 +501,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()
.hickory_dns(true) .hickory_dns(true)
.pool_max_idle_per_host(1) .pool_max_idle_per_host(1)
.pool_idle_timeout(Duration::from_secs(18)) .pool_idle_timeout(Duration::from_secs(50))
.connect_timeout(Duration::from_secs(60)) .connect_timeout(Duration::from_secs(60))
.timeout(Duration::from_secs(60 * 5)) .timeout(Duration::from_secs(60 * 5))
.redirect(redirect_policy) .redirect(redirect_policy)