summaryrefslogtreecommitdiff
path: root/indra/llcorehttp/examples/http_texture_load.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2012-12-11 18:22:41 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2012-12-11 18:22:41 -0500
commita5205d4d6a5f3478927cbede80671051c3e16f35 (patch)
tree49fcf482e2c15068313ce74ae220ec9fb3e7c93e /indra/llcorehttp/examples/http_texture_load.cpp
parent8657da24cd206af87cb32d095b347f7aa07596b5 (diff)
parent2807c0b9424f9d3f80e49a3c150af0a459676d79 (diff)
merge
Diffstat (limited to 'indra/llcorehttp/examples/http_texture_load.cpp')
-rw-r--r--indra/llcorehttp/examples/http_texture_load.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llcorehttp/examples/http_texture_load.cpp b/indra/llcorehttp/examples/http_texture_load.cpp
index 998dc9240b..40ad4f047d 100644
--- a/indra/llcorehttp/examples/http_texture_load.cpp
+++ b/indra/llcorehttp/examples/http_texture_load.cpp
@@ -153,6 +153,7 @@ public:
//
int main(int argc, char** argv)
{
+ LLCore::HttpStatus status;
bool do_random(false);
bool do_verbose(false);
@@ -215,6 +216,9 @@ int main(int argc, char** argv)
// Initialization
init_curl();
LLCore::HttpRequest::createService();
+ LLCore::HttpRequest::setPolicyClassOption(LLCore::HttpRequest::DEFAULT_POLICY_ID,
+ LLCore::HttpRequest::CP_CONNECTION_LIMIT,
+ concurrency_limit);
LLCore::HttpRequest::startThread();
// Get service point
@@ -228,7 +232,7 @@ int main(int argc, char** argv)
ws.loadTextureUuids(uuids);
ws.mRandomRange = do_random;
ws.mVerbose = do_verbose;
- ws.mMaxConcurrency = concurrency_limit;
+ ws.mMaxConcurrency = 100;
if (! ws.mTextures.size())
{