diff options
| author | Monty Brandenberg <monty@lindenlab.com> | 2013-08-19 12:01:26 -0400 | 
|---|---|---|
| committer | Monty Brandenberg <monty@lindenlab.com> | 2013-08-19 12:01:26 -0400 | 
| commit | 146a5c3f6c3d1b8e9e92f71dce1e7f058091ea20 (patch) | |
| tree | d7b54abfe15066cd41c7cbb2dd90b89ee3d5095a /indra/llcorehttp | |
| parent | e764a2a565e18ce2157788f634e85bc3641976b3 (diff) | |
Add 'internal'/'external' token to DEBUG retry message so that dev/QA
can know exactly where a retry value was sourced.
Diffstat (limited to 'indra/llcorehttp')
| -rwxr-xr-x | indra/llcorehttp/_httppolicy.cpp | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/indra/llcorehttp/_httppolicy.cpp b/indra/llcorehttp/_httppolicy.cpp index c4758aee88..ac79a77659 100755 --- a/indra/llcorehttp/_httppolicy.cpp +++ b/indra/llcorehttp/_httppolicy.cpp @@ -153,14 +153,16 @@ void HttpPolicy::retryOp(HttpOpRequest * op)  		};  	static const int delta_max(int(LL_ARRAY_SIZE(retry_deltas)) - 1);  	static const HttpStatus error_503(503); -	 +  	const HttpTime now(totalTime());  	const int policy_class(op->mReqPolicy);  	HttpTime delta(retry_deltas[llclamp(op->mPolicyRetries, 0, delta_max)]); +	bool external_delta(false);  	if (op->mReplyRetryAfter > 0 && op->mReplyRetryAfter < 30)  	{  		delta = op->mReplyRetryAfter * U64L(1000000); +		external_delta = true;  	}  	op->mPolicyRetryAt = now + delta;  	++op->mPolicyRetries; @@ -171,7 +173,8 @@ void HttpPolicy::retryOp(HttpOpRequest * op)  	LL_DEBUGS("CoreHttp") << "HTTP request " << static_cast<HttpHandle>(op)  						  << " retry " << op->mPolicyRetries  						  << " scheduled in " << (delta / HttpTime(1000)) -						  << " mS.  Status:  " << op->mStatus.toHex() +						  << " mS (" << (external_delta ? "external" : "internal") +						  << ").  Status:  " << op->mStatus.toHex()  						  << LL_ENDL;  	if (op->mTracing > HTTP_TRACE_OFF)  	{ | 
