summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2013-01-10 13:22:48 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2013-01-10 13:22:48 -0500
commit5e7f36541b503bb2bd03e121c7ef13025f69065a (patch)
tree5b8ea2c6a62bf85052a059a64f6b32751340915e
parent4e1eda1c3bc898ae8481b8dfcff4b29196ac835e (diff)
SH-3639 WIP - increased retry interval to allow for intermittent extremely slow responses
-rwxr-xr-xindra/newview/llappearancemgr.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp
index 8b4adc8785..bf35382b7a 100755
--- a/indra/newview/llappearancemgr.cpp
+++ b/indra/newview/llappearancemgr.cpp
@@ -155,6 +155,11 @@ LLUUID findDescendentCategoryIDByName(const LLUUID& parent_id, const std::string
}
}
+// We want this to be much lower (e.g. 15.0 is usually fine), bumping
+// up for now until we can diagnose some cases of very slow response
+// to requests.
+const F32 DEFAULT_RETRY_AFTER_INTERVAL = 300.0;
+
class LLCallAfterInventoryBatchMgr: public LLEventTimer
{
public:
@@ -162,7 +167,7 @@ public:
const std::string& phase_name,
nullary_func_t on_completion_func,
nullary_func_t on_failure_func = no_op,
- F32 retry_after = 15.0,
+ F32 retry_after = DEFAULT_RETRY_AFTER_INTERVAL,
S32 max_retries = 2
):
mDstCatID(dst_cat_id),
@@ -365,7 +370,7 @@ public:
const std::string& phase_name,
nullary_func_t on_completion_func,
nullary_func_t on_failure_func = no_op,
- F32 retry_after = 15.0,
+ F32 retry_after = DEFAULT_RETRY_AFTER_INTERVAL,
S32 max_retries = 2
):
LLCallAfterInventoryBatchMgr(dst_cat_id, phase_name, on_completion_func, on_failure_func, retry_after, max_retries)
@@ -403,7 +408,7 @@ public:
const std::string& phase_name,
nullary_func_t on_completion_func,
nullary_func_t on_failure_func = no_op,
- F32 retry_after = 15.0,
+ F32 retry_after = DEFAULT_RETRY_AFTER_INTERVAL,
S32 max_retries = 2
):
LLCallAfterInventoryBatchMgr(dst_cat_id, phase_name, on_completion_func, on_failure_func, retry_after, max_retries)