diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2013-05-10 09:32:30 -0400 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2013-05-10 09:32:30 -0400 |
commit | 96a2173c643e145a6f5d4964282c4d43f0fc0c3e (patch) | |
tree | 8002b3725edb3a142a9824e60151df10df840910 /indra/newview/llhttpretrypolicy.h | |
parent | 43224062a64cc658d429e434a7b673fac0b7c012 (diff) |
SH-4176 WIP - allow retries on 4xx errors if enabled by flag. So enable in the case of appearance requests.
Diffstat (limited to 'indra/newview/llhttpretrypolicy.h')
-rwxr-xr-x | indra/newview/llhttpretrypolicy.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llhttpretrypolicy.h b/indra/newview/llhttpretrypolicy.h index 1fb0cac03f..5b1a1d79e0 100755 --- a/indra/newview/llhttpretrypolicy.h +++ b/indra/newview/llhttpretrypolicy.h @@ -60,7 +60,7 @@ public: class LLAdaptiveRetryPolicy: public LLHTTPRetryPolicy { public: - LLAdaptiveRetryPolicy(F32 min_delay, F32 max_delay, F32 backoff_factor, U32 max_retries); + LLAdaptiveRetryPolicy(F32 min_delay, F32 max_delay, F32 backoff_factor, U32 max_retries, bool retry_on_4xx = false); // virtual void onSuccess(); @@ -88,6 +88,7 @@ private: U32 mRetryCount; // number of times shouldRetry has been called. LLTimer mRetryTimer; // time until next retry. bool mShouldRetry; // Becomes false after too many retries, or the wrong sort of status received, etc. + bool mRetryOn4xx; // Normally only retry on 5xx server errors. }; #endif |