summaryrefslogtreecommitdiffstats
path: root/sync
diff options
context:
space:
mode:
authorzea <zea@chromium.org>2015-10-19 17:06:10 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-20 00:07:29 +0000
commitb2eca228fc91b88ffb8bd2dd44fef52e99a53e8f (patch)
tree930434dd676d135e49cd06407b444e62fb4e66d3 /sync
parent798fd0e1e0b989013e20bf6a0bf6b4dd5a62b69c (diff)
downloadchromium_src-b2eca228fc91b88ffb8bd2dd44fef52e99a53e8f.zip
chromium_src-b2eca228fc91b88ffb8bd2dd44fef52e99a53e8f.tar.gz
chromium_src-b2eca228fc91b88ffb8bd2dd44fef52e99a53e8f.tar.bz2
[Sync] Update sync's backoff policies
Sync now matches GCM, with a 30 second initial backoff and a 10 minute maximum. BUG=541330 Review URL: https://codereview.chromium.org/1414803002 Cr-Commit-Position: refs/heads/master@{#354920}
Diffstat (limited to 'sync')
-rw-r--r--sync/internal_api/public/engine/polling_constants.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sync/internal_api/public/engine/polling_constants.cc b/sync/internal_api/public/engine/polling_constants.cc
index 9a1d3d1..edce4d8 100644
--- a/sync/internal_api/public/engine/polling_constants.cc
+++ b/sync/internal_api/public/engine/polling_constants.cc
@@ -17,7 +17,7 @@ const int64 kDefaultShortPollIntervalSeconds = 3600 * 8;
const int64 kDefaultLongPollIntervalSeconds = 3600 * 12;
// Maximum interval for exponential backoff.
-const int64 kMaxBackoffSeconds = 60 * 60 * 4; // 4 hours.
+const int64 kMaxBackoffSeconds = 60 * 10; // 10 minutes.
// Backoff interval randomization factor.
const int kBackoffRandomizationFactor = 2;
@@ -25,7 +25,7 @@ const int kBackoffRandomizationFactor = 2;
// After a failure contacting sync servers, specifies how long to wait before
// reattempting and entering exponential backoff if consecutive failures
// occur.
-const int kInitialBackoffRetrySeconds = 60 * 5; // 5 minutes.
+const int kInitialBackoffRetrySeconds = 30; // 30 seconds.
// A dangerously short retry value that would not actually protect servers from
// DDoS if it were used as a seed for exponential backoff, although the client