summaryrefslogtreecommitdiff
path: root/indra/llmessage/llcurl.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2010-11-05 16:17:54 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2010-11-05 16:17:54 -0400
commit7318214ed30f57fe04dd7828fffede949fee6245 (patch)
tree71f22a09fe50176e9b7664611f7ad3addc254ec9 /indra/llmessage/llcurl.cpp
parentddff1c68f22fbee00178d223eaac382836dba5f7 (diff)
parent4a8066856756cc9153cfab398a9a9b277a9a5e5d (diff)
merge
Diffstat (limited to 'indra/llmessage/llcurl.cpp')
-rw-r--r--indra/llmessage/llcurl.cpp24
1 files changed, 20 insertions, 4 deletions
diff --git a/indra/llmessage/llcurl.cpp b/indra/llmessage/llcurl.cpp
index 66f1ffd41b..6473b23e80 100644
--- a/indra/llmessage/llcurl.cpp
+++ b/indra/llmessage/llcurl.cpp
@@ -89,15 +89,29 @@ void check_curl_code(CURLcode code)
{
if (code != CURLE_OK)
{
- llerrs << "curl error detected: " << curl_easy_strerror(code) << llendl;
+ // linux appears to throw a curl error once per session for a bad initialization
+ // at a pretty random time (when enabling cookies). Making curl errors non-asserts
+ // for non-windows platforms for now. - Nyx
+ #if LL_WINDOWS
+ llerrs << "curl error detected: " << curl_easy_strerror(code) << llendl;
+ #else
+ llinfos << "curl error detected: " << curl_easy_strerror(code) << llendl;
+ #endif
}
}
-void check_curl_multi_code(CURLMcode code)
+void check_curl_multi_code(CURLMcode code)
{
if (code != CURLM_OK)
{
- llerrs << "curl multi error detected: " << curl_multi_strerror(code) << llendl;
+ // linux appears to throw a curl error once per session for a bad initialization
+ // at a pretty random time (when enabling cookies). Making curl errors non-asserts
+ // for non-windows platforms for now. - Nyx
+ #if LL_WINDOWS
+ llerrs << "curl multi error detected: " << curl_multi_strerror(code) << llendl;
+ #else
+ llinfos << "curl multi error detected: " << curl_multi_strerror(code) << llendl;
+ #endif
}
}
@@ -1160,7 +1174,9 @@ void LLCurl::initClass()
// Do not change this "unless you are familiar with and mean to control
// internal operations of libcurl"
// - http://curl.haxx.se/libcurl/c/curl_global_init.html
- curl_global_init(CURL_GLOBAL_ALL);
+ CURLcode code = curl_global_init(CURL_GLOBAL_ALL);
+
+ check_curl_code(code);
Easy::sHandleMutex = new LLMutex(NULL);