AU: Always retry on failed connections, even manual checks.
This is a temporary workaround for a bug discovered w/ httpdate and
the oobe.
BUG=9736
TEST=unittests
Change-Id: Ic7bbc867be0298d01686a9ea56ce9b012def5f7b
Review URL: http://codereview.chromium.org/5395004
diff --git a/libcurl_http_fetcher.cc b/libcurl_http_fetcher.cc
index 170abfa..2502b6d 100644
--- a/libcurl_http_fetcher.cc
+++ b/libcurl_http_fetcher.cc
@@ -25,7 +25,7 @@
namespace {
const int kMaxRetriesCount = 20;
-const int kNoNetworkRetrySeconds = 30;
+const int kNoNetworkRetrySeconds = 10;
const char kCACertificatesPath[] = "/usr/share/chromeos-ca-certificates";
} // namespace {}
diff --git a/update_attempter.cc b/update_attempter.cc
index 7c958cb..529338a 100644
--- a/update_attempter.cc
+++ b/update_attempter.cc
@@ -164,11 +164,9 @@
// Actions:
LibcurlHttpFetcher* update_check_fetcher =
new LibcurlHttpFetcher(GetProxyResolver());
- // If this is an automatic check, try harder to connect to the network. See
- // comment in libcurl_http_fetcher.cc.
- if (!obey_proxies) {
- update_check_fetcher->set_no_network_max_retries(3);
- }
+ // Try harder to connect to the network. See comment in
+ // libcurl_http_fetcher.cc.
+ update_check_fetcher->set_no_network_max_retries(3);
shared_ptr<OmahaRequestAction> update_check_action(
new OmahaRequestAction(prefs_,
omaha_request_params_,