summaryrefslogtreecommitdiff
path: root/indra/llcorehttp/_httppolicyglobal.cpp
diff options
context:
space:
mode:
authorMonty Brandenberg <monty@lindenlab.com>2012-06-19 17:01:02 -0400
committerMonty Brandenberg <monty@lindenlab.com>2012-06-19 17:01:02 -0400
commita50944e078b98435685f04eda0ba93e95d4c61f2 (patch)
treec49f2b0b40de767b94beea0bf3ea098c6af382ab /indra/llcorehttp/_httppolicyglobal.cpp
parentf0353abe7605778048d69ce3acb8f5ddd5693083 (diff)
Cleanup: move magic nubmers to new _httpinternal.h header file.
Diffstat (limited to 'indra/llcorehttp/_httppolicyglobal.cpp')
-rw-r--r--indra/llcorehttp/_httppolicyglobal.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/indra/llcorehttp/_httppolicyglobal.cpp b/indra/llcorehttp/_httppolicyglobal.cpp
index 6b1de38fd6..ca04839eaf 100644
--- a/indra/llcorehttp/_httppolicyglobal.cpp
+++ b/indra/llcorehttp/_httppolicyglobal.cpp
@@ -26,6 +26,8 @@
#include "_httppolicyglobal.h"
+#include "_httpinternal.h"
+
namespace LLCore
{
@@ -33,8 +35,8 @@ namespace LLCore
HttpPolicyGlobal::HttpPolicyGlobal()
: mSetMask(0UL),
- mConnectionLimit(32L),
- mTrace(0),
+ mConnectionLimit(DEFAULT_CONNECTIONS),
+ mTrace(TRACE_OFF),
mUseLLProxy(0)
{}
@@ -64,11 +66,11 @@ HttpStatus HttpPolicyGlobal::set(HttpRequest::EGlobalPolicy opt, long value)
switch (opt)
{
case HttpRequest::GP_CONNECTION_LIMIT:
- mConnectionLimit = value;
+ mConnectionLimit = llclamp(value, long(LIMIT_CONNECTIONS_MIN), long(LIMIT_CONNECTIONS_MAX));
break;
case HttpRequest::GP_TRACE:
- mTrace = llclamp(value, 0L, 3L);
+ mTrace = llclamp(value, long(TRACE_MIN), long(TRACE_MAX));
break;
case HttpRequest::GP_LLPROXY: