diff options
| author | Oz Linden <oz@lindenlab.com> | 2017-10-11 09:13:55 -0400 |
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2017-10-11 09:13:55 -0400 |
| commit | d62ad1ef8afc1b9abadbc611d373a7a7d9afc368 (patch) | |
| tree | 9f14b141e692c3b78eee846f12fc021feacf1de6 /indra/llcorehttp/httpoptions.cpp | |
| parent | c0ac11e24022eb51918e825414f2c04f3085bc61 (diff) | |
| parent | b6d22de58850fc9a5b34eeb5b7930e5845bfc42d (diff) | |
merge changes for 5.0.8-release
Diffstat (limited to 'indra/llcorehttp/httpoptions.cpp')
| -rw-r--r-- | indra/llcorehttp/httpoptions.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/llcorehttp/httpoptions.cpp b/indra/llcorehttp/httpoptions.cpp index aab447f2dd..df5aa52fa9 100644 --- a/indra/llcorehttp/httpoptions.cpp +++ b/indra/llcorehttp/httpoptions.cpp @@ -39,6 +39,8 @@ HttpOptions::HttpOptions() : mTimeout(HTTP_REQUEST_TIMEOUT_DEFAULT), mTransferTimeout(HTTP_REQUEST_XFER_TIMEOUT_DEFAULT), mRetries(HTTP_RETRY_COUNT_DEFAULT), + mMinRetryBackoff(HTTP_RETRY_BACKOFF_MIN_DEFAULT), + mMaxRetryBackoff(HTTP_RETRY_BACKOFF_MAX_DEFAULT), mUseRetryAfter(HTTP_USE_RETRY_AFTER_DEFAULT), mFollowRedirects(true), mVerifyPeer(false), @@ -81,6 +83,16 @@ void HttpOptions::setRetries(unsigned int retries) mRetries = retries; } +void HttpOptions::setMinBackoff(HttpTime delay) +{ + mMinRetryBackoff = delay; +} + +void HttpOptions::setMaxBackoff(HttpTime delay) +{ + mMaxRetryBackoff = delay; +} + void HttpOptions::setUseRetryAfter(bool use_retry) { mUseRetryAfter = use_retry; |
