CURL easy handles are now cached for reacquisition. Should lessen hitching by about half on systems exhibiting such.

This commit is contained in:
Shyotl
2011-05-20 19:03:43 -05:00
parent 285c19090e
commit c029f00e12
7 changed files with 664 additions and 502 deletions

View File

@@ -207,6 +207,8 @@ public:
void get(const std::string& url, LLCurl::ResponderPtr responder);
bool getByteRange(const std::string& url, const headers_t& headers, S32 offset, S32 length, LLCurl::ResponderPtr responder);
bool post(const std::string& url, const headers_t& headers, const LLSD& data, LLCurl::ResponderPtr responder);
bool post(const std::string& url, const headers_t& headers, const std::string& data, LLCurl::ResponderPtr responder);
S32 process();
S32 getQueued();
@@ -220,6 +222,7 @@ private:
curlmulti_set_t mMultiSet;
LLCurl::Multi* mActiveMulti;
S32 mActiveRequestCount;
BOOL mProcessing;
U32 mThreadID; // debug
};