From b2eca228fc91b88ffb8bd2dd44fef52e99a53e8f Mon Sep 17 00:00:00 2001 From: zea Date: Mon, 19 Oct 2015 17:06:10 -0700 Subject: [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} --- sync/internal_api/public/engine/polling_constants.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sync') 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 -- cgit v1.1