diff options
author | simon <none@none> | 2013-04-25 14:14:35 -0700 |
---|---|---|
committer | simon <none@none> | 2013-04-25 14:14:35 -0700 |
commit | 6e483af1f6b7a6f8d0f83e54d79a941607760f7b (patch) | |
tree | 7e9673f54b1aed046d7b3cc6596877fd966e715e /indra/llmessage/llcurl.h | |
parent | c4a45fca396bea8abf8362b15b5cf0f85e57ad6b (diff) |
Revert ares and libcurl version update that was causing problems, revise curl
handle duplication code. Reviewed by Kelly
Diffstat (limited to 'indra/llmessage/llcurl.h')
-rw-r--r-- | indra/llmessage/llcurl.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/indra/llmessage/llcurl.h b/indra/llmessage/llcurl.h index a03333157c..90b3f2815d 100644 --- a/indra/llmessage/llcurl.h +++ b/indra/llmessage/llcurl.h @@ -53,14 +53,6 @@ class LLCurlThread; // For whatever reason, this is not typedef'd in curl.h typedef size_t (*curl_header_callback)(void *ptr, size_t size, size_t nmemb, void *stream); -class LLCurlHandleHandler : public LLSingleton<LLCurlHandleHandler> -{ -public: - static CURL* the_one_true_curl_handle; - LLCurlHandleHandler(); - static CURL* CreateCurlHandle(); -}; - class LLCurl { LOG_CLASS(LLCurl); @@ -196,6 +188,8 @@ public: static CURL* newEasyHandle() ; static void deleteEasyHandle(CURL* handle) ; + static CURL* createStandardCurlHandle(); + private: static std::string sCAPath; static std::string sCAFile; @@ -205,6 +199,7 @@ private: static LLMutex* sHandleMutexp ; static S32 sTotalHandles ; static S32 sMaxHandles; + static CURL* sCurlTemplateStandardHandle; public: static bool sNotQuitting; static F32 sCurlRequestTimeOut; |