Implement curl connection throttling (CurlConcurrentConnections)

This commit is contained in:
Aleric Inglewood
2012-09-21 19:26:40 +02:00
parent 5bcb350d89
commit fb5ec1d1f5
5 changed files with 47 additions and 13 deletions

View File

@@ -4205,6 +4205,17 @@
<key>Value</key>
<integer>0</integer>
</map>
<key>CurlConcurrentConnections</key>
<map>
<key>Comment</key>
<string>Maximum number of simultaneous curl connections (requires restart)</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>U32</string>
<key>Value</key>
<integer>16</integer>
</map>
<key>CurlMaximumNumberOfHandles</key>
<map>
<key>Comment</key>

View File

@@ -1817,7 +1817,7 @@ bool LLAppViewer::initThreads()
LLWatchdog::getInstance()->init(watchdog_killer_callback);
}
AICurlInterface::startCurlThread();
AICurlInterface::startCurlThread(gSavedSettings.getU32("CurlConcurrentConnections"));
LLImage::initClass();