summaryrefslogtreecommitdiff
path: root/indra/llcorehttp/_httppolicy.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/_httppolicy.cpp
parentf0353abe7605778048d69ce3acb8f5ddd5693083 (diff)
Cleanup: move magic nubmers to new _httpinternal.h header file.
Diffstat (limited to 'indra/llcorehttp/_httppolicy.cpp')
-rw-r--r--indra/llcorehttp/_httppolicy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llcorehttp/_httppolicy.cpp b/indra/llcorehttp/_httppolicy.cpp
index 0e08d88276..4be9f1d45f 100644
--- a/indra/llcorehttp/_httppolicy.cpp
+++ b/indra/llcorehttp/_httppolicy.cpp
@@ -126,7 +126,7 @@ HttpService::ELoopSpeed HttpPolicy::processReadyQueue()
for (int policy_class(0); policy_class < LL_ARRAY_SIZE(mState); ++policy_class)
{
int active(transport.getActiveCountInClass(policy_class));
- int needed(8 - active);
+ int needed(DEFAULT_CONNECTIONS - active); // *FIXME: move to policy class
HttpRetryQueue & retryq(mState[policy_class].mRetryQueue);
HttpReadyQueue & readyq(mState[policy_class].mReadyQueue);
@@ -242,7 +242,7 @@ bool HttpPolicy::stageAfterCompletion(HttpOpRequest * op)
int HttpPolicy::getReadyCount(HttpRequest::policy_t policy_class)
{
- if (policy_class < HttpRequest::POLICY_CLASS_LIMIT)
+ if (policy_class < POLICY_CLASS_LIMIT) // *FIXME: use actual active class count
{
return (mState[policy_class].mReadyQueue.size()
+ mState[policy_class].mRetryQueue.size());