fix zealous client connection close (regression 809c9b4481)

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-03-15 03:44:22 -07:00 committed by June
parent 7809f0a6ae
commit 7b15f85c62

View file

@ -498,7 +498,8 @@ fn reqwest_client_builder(config: &Config) -> Result<reqwest::ClientBuilder> {
let mut reqwest_client_builder = reqwest::Client::builder()
.trust_dns(true)
.pool_max_idle_per_host(0)
.pool_max_idle_per_host(1)
.pool_idle_timeout(Duration::from_secs(18))
.connect_timeout(Duration::from_secs(60))
.timeout(Duration::from_secs(60 * 5))
.redirect(redirect_policy)