diff options
author | Leslie Linden <leslie@lindenlab.com> | 2011-09-20 15:18:49 -0700 |
---|---|---|
committer | Leslie Linden <leslie@lindenlab.com> | 2011-09-20 15:18:49 -0700 |
commit | eb3a643f3bcddb159622e2d38ef65f661b204653 (patch) | |
tree | c33e9db5e102f3099091a0e90fdfc26ad1e8db42 /indra/llmessage/llcurl.cpp | |
parent | 3df9545017a4835e162801d3e8a13d68c8bc44ad (diff) | |
parent | 938f1b4f41683e1a3aaa424d3d7bac5b0772d09c (diff) |
Merge from viewer-experience
Diffstat (limited to 'indra/llmessage/llcurl.cpp')
-rw-r--r-- | indra/llmessage/llcurl.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/indra/llmessage/llcurl.cpp b/indra/llmessage/llcurl.cpp index a3de178d78..14e169c6b1 100644 --- a/indra/llmessage/llcurl.cpp +++ b/indra/llmessage/llcurl.cpp @@ -499,7 +499,7 @@ void LLCurl::Easy::prepRequest(const std::string& url, //don't verify host name so urls with scrubbed host names will work (improves DNS performance) setopt(CURLOPT_SSL_VERIFYHOST, 0); - setopt(CURLOPT_TIMEOUT, CURL_REQUEST_TIMEOUT); + setopt(CURLOPT_TIMEOUT, llmax(time_out, CURL_REQUEST_TIMEOUT)); setoptString(CURLOPT_URL, url); @@ -1213,3 +1213,13 @@ void LLCurl::cleanupClass() } const unsigned int LLCurl::MAX_REDIRECTS = 5; + +// Provide access to LLCurl free functions outside of llcurl.cpp without polluting the global namespace. +void LLCurlFF::check_easy_code(CURLcode code) +{ + check_curl_code(code); +} +void LLCurlFF::check_multi_code(CURLMcode code) +{ + check_curl_multi_code(code); +} |