diff options
| author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2014-02-25 13:25:40 -0500 | 
|---|---|---|
| committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2014-02-25 13:25:40 -0500 | 
| commit | 895d52a399739962c38ddf571e57f85362823dff (patch) | |
| tree | a404be5fb01219c7f080c10d80017d1d44647dc3 /indra/llmessage | |
| parent | 948c0c559d14b73714652b581886cbcef391ed62 (diff) | |
| parent | de8fea13627cc5978b8a6135802a52864a11c39a (diff) | |
merge viewer-release to sunshine-external
Diffstat (limited to 'indra/llmessage')
| -rwxr-xr-x | indra/llmessage/llcurl.cpp | 11 | 
1 files changed, 7 insertions, 4 deletions
| diff --git a/indra/llmessage/llcurl.cpp b/indra/llmessage/llcurl.cpp index e8c508dcbf..c28494e2c8 100755 --- a/indra/llmessage/llcurl.cpp +++ b/indra/llmessage/llcurl.cpp @@ -6,7 +6,7 @@   *   * $LicenseInfo:firstyear=2006&license=viewerlgpl$   * Second Life Viewer Source Code - * Copyright (C) 2010, Linden Research, Inc. + * Copyright (C) 2010-2013, Linden Research, Inc.   *    * This library is free software; you can redistribute it and/or   * modify it under the terms of the GNU Lesser General Public @@ -370,9 +370,12 @@ LLCurl::Easy* LLCurl::Easy::getEasy()  		return NULL;  	} -	// set no DNS caching as default for all easy handles. This prevents them adopting a -	// multi handles cache if they are added to one. -	CURLcode result = curl_easy_setopt(easy->mCurlEasyHandle, CURLOPT_DNS_CACHE_TIMEOUT, 0); +	// Enable a brief cache period for now.  This was zero for the longest time +	// which caused some routers grief and generated unneeded traffic.  For the +	// threaded resolver, we're using system resolution libraries and non-zero values +	// are preferred.  The c-ares resolver is another matter and it might not +	// track server changes as well. +	CURLcode result = curl_easy_setopt(easy->mCurlEasyHandle, CURLOPT_DNS_CACHE_TIMEOUT, 15);  	check_curl_code(result);  	result = curl_easy_setopt(easy->mCurlEasyHandle, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);  	check_curl_code(result); | 
