Index: sync/internal_api/public/engine/polling_constants.cc |
diff --git a/sync/internal_api/public/engine/polling_constants.cc b/sync/internal_api/public/engine/polling_constants.cc |
index d65994bdc7b62720b56295d65b4915b2dd3ca65e..fe15be93a3781f535717f200f53e3729afcff3c5 100644 |
--- a/sync/internal_api/public/engine/polling_constants.cc |
+++ b/sync/internal_api/public/engine/polling_constants.cc |
@@ -22,5 +22,13 @@ const int64 kMaxBackoffSeconds = 60 * 60 * 4; // 4 hours. |
// Backoff interval randomization factor. |
const int kBackoffRandomizationFactor = 2; |
-} // namespace syncer |
+// 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. |
+ |
+// Similar to kInitialBackoffRetrySeconds above, but only to be used in |
+// certain exceptional error cases, such as MIGRATION_DONE. |
+const int kInitialBackoffImmediateRetrySeconds = 1; |
rlarocque
2012/08/11 00:22:56
The word "Immediate" is misleading here. Maybe s/
tim (not reviewing)
2012/08/11 00:43:58
Ok. I had QuickBackoff initially, but I thought i
|
+} // namespace syncer |