From 35300f473f04bd4fcff9b2bd025c345d55a7a065 Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Sat, 29 Jan 2022 18:28:15 -0500 Subject: [PATCH] Raise dns cache to 600 seconds --- indra/llcorehttp/_httpoprequest.cpp | 2 +- indra/llcorehttp/httpcommon.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/llcorehttp/_httpoprequest.cpp b/indra/llcorehttp/_httpoprequest.cpp index 085597e7107..26f6bb3775d 100644 --- a/indra/llcorehttp/_httpoprequest.cpp +++ b/indra/llcorehttp/_httpoprequest.cpp @@ -533,7 +533,7 @@ HttpStatus HttpOpRequest::prepareRequest(HttpService * service) long follow_redirect(1L); long sslPeerV(0L); long sslHostV(0L); - long dnsCacheTimeout(60); // Refetch dns after 60 seconds + long dnsCacheTimeout(600); // Refetch dns after 600 seconds long nobody(0L); if (mReqOptions) diff --git a/indra/llcorehttp/httpcommon.cpp b/indra/llcorehttp/httpcommon.cpp index e4828021932..e0ca63e1284 100644 --- a/indra/llcorehttp/httpcommon.cpp +++ b/indra/llcorehttp/httpcommon.cpp @@ -299,7 +299,7 @@ CURL *getCurlTemplateHandle() // about 700 or so requests and starts issuing TCP RSTs to // new connections. Reuse the DNS lookups for even a few // seconds and no RSTs. - result = curl_easy_setopt(curlpTemplateHandle, CURLOPT_DNS_CACHE_TIMEOUT, 60); // Refetch dns after 60 seconds + result = curl_easy_setopt(curlpTemplateHandle, CURLOPT_DNS_CACHE_TIMEOUT, 600); // Refetch dns after 600 seconds check_curl_code(result, CURLOPT_DNS_CACHE_TIMEOUT); result = curl_easy_setopt(curlpTemplateHandle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2TLS); -- GitLab