From bb3a33c1032c6bdb02a483440a2bcf34ec3665db Mon Sep 17 00:00:00 2001 From: Revertron Date: Wed, 29 Oct 2025 15:59:19 +0100 Subject: [PATCH] Tuned HTTPs client for DoH. --- src/dns/client.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dns/client.rs b/src/dns/client.rs index 101e946..e512489 100644 --- a/src/dns/client.rs +++ b/src/dns/client.rs @@ -482,9 +482,10 @@ impl HttpsDnsClient { let agent_config = Agent::config_builder() .user_agent(&client_name) - .timeout_global(Some(Duration::from_secs(3))) - .max_idle_connections_per_host(4) + .timeout_global(Some(Duration::from_secs(5))) + .max_idle_connections_per_host(8) .max_idle_connections(16) + .max_idle_age(Duration::from_secs(300)) .build(); let agent = Agent::with_parts(agent_config, DefaultConnector::default(), BootstrapResolver::new(servers)); Self { agent, seq: AtomicU16::new(rand::random::()) }