Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

refactor: drop redundant curl DNS cache timeout

ldm0d0f4ec8a3e67
diff --git a/moli-fetch/src/blocking/mod.rs b/moli-fetch/src/blocking/mod.rs
index 4609016a5..72df752a5 100644
--- a/moli-fetch/src/blocking/mod.rs
+++ b/moli-fetch/src/blocking/mod.rs
@@ -586,9 +586,6 @@ pub(crate) fn configure_easy<H: Handler>(
if let Err(error) = easy.tcp_keepalive(true) {
debug!(url = %request_url, "failed to enable TCP keepalive: {error}");
}
- if let Err(error) = easy.dns_cache_timeout(Duration::from_secs(60)) {
- debug!(url = %request_url, "failed to configure curl DNS cache timeout: {error}");
- }
if let Some(max_connects) = config
.http_max_total_connections()
.or_else(|| config.effective_http_max_host_connections().map(u16::from))