fix zealous client connection close (regression 809c9b4481
)
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
7809f0a6ae
commit
7b15f85c62
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue