Lower the retry count in download fetcher if the update is interactive.
Retrying 20 times could take a very long time, which we don't want in
an interactive update.
Bug: 70722687
Test: only retried 3 times
Change-Id: Ic9551ab3f3603a299cda0caa961e5e4109bb05b8
(cherry picked from commit d77408d2a75c31ab0541f3a23a3ccad1092ffd77)
diff --git a/common/constants.h b/common/constants.h
index fefd08c..26773cf 100644
--- a/common/constants.h
+++ b/common/constants.h
@@ -176,6 +176,7 @@
// succeeding. When using p2p, this is low in order to fail fast.
const int kDownloadMaxRetryCount = 20;
const int kDownloadMaxRetryCountOobeNotComplete = 3;
+const int kDownloadMaxRetryCountInteractive = 3;
const int kDownloadP2PMaxRetryCount = 5;
// The connect timeout, in seconds.