summaryrefslogtreecommitdiff
path: root/indra/llmessage/llcurl.h
diff options
context:
space:
mode:
authorGraham Madarasz (Graham) <graham@lindenlab.com>2013-02-28 09:45:43 -0800
committerGraham Madarasz (Graham) <graham@lindenlab.com>2013-02-28 09:45:43 -0800
commit2dcbbf04c9375e2de877956476e0a58219a169cf (patch)
treef689fc4bfe9f89cf2bea4c61522af85f3e156577 /indra/llmessage/llcurl.h
parentdf08808640031bd27a11177ea49a08f797d2d570 (diff)
Improve curl/ares init behavior by duping handles instead of calling easy_init
Diffstat (limited to 'indra/llmessage/llcurl.h')
-rw-r--r--indra/llmessage/llcurl.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/llmessage/llcurl.h b/indra/llmessage/llcurl.h
index 7bcf61e233..a03333157c 100644
--- a/indra/llmessage/llcurl.h
+++ b/indra/llmessage/llcurl.h
@@ -45,7 +45,7 @@
#include "llqueuedthread.h"
#include "llframetimer.h"
#include "llpointer.h"
-
+#include "llsingleton.h"
class LLMutex;
class LLCurlThread;
@@ -53,6 +53,14 @@ 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);