diff options
author | Monty Brandenberg <monty@lindenlab.com> | 2012-06-08 20:21:54 -0400 |
---|---|---|
committer | Monty Brandenberg <monty@lindenlab.com> | 2012-06-08 20:21:54 -0400 |
commit | 28a04400b4160dd34166483ddcf0c12637bcc363 (patch) | |
tree | e43ca202df6ed9bc8cbcc4a97d354e4798b7aa62 /indra/llcorehttp/_httplibcurl.h | |
parent | 1e3d05329f2e823191c7c91926bee5ec9e5dc4d7 (diff) |
Implemented HTTP retry for requests. Went in rather easily which
surprised me. Added a retry queue similar to ready queue to the
policy object which is sorted by retry time. Currently do five
retries (after the initial try) delayed by .25, .5, 1, 2 and 5
seconds. Removed the retry logic from the lltexturefetch module.
Upped the waiting time in the unit test for the retries. People
won't like this but tough, need tests.
Diffstat (limited to 'indra/llcorehttp/_httplibcurl.h')
-rw-r--r-- | indra/llcorehttp/_httplibcurl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/llcorehttp/_httplibcurl.h b/indra/llcorehttp/_httplibcurl.h index ec325c1946..fe628b9ab0 100644 --- a/indra/llcorehttp/_httplibcurl.h +++ b/indra/llcorehttp/_httplibcurl.h @@ -83,7 +83,9 @@ public: protected: /// Invoked when libcurl has indicated a request has been processed /// to completion and we need to move the request to a new state. - void completeRequest(CURLM * multi_handle, CURL * handle, CURLcode status); + HttpService::ELoopSpeed completeRequest(CURLM * multi_handle, + CURL * handle, + CURLcode status); protected: typedef std::set<HttpOpRequest *> active_set_t; |