Index: update_attempter.cc |
diff --git a/update_attempter.cc b/update_attempter.cc |
index 4e7d7bf586b64be10db6aa22237b66b75e8ab315..1d41ee5777dc5588bb5edc1f49b7070e776fe825 100644 |
--- a/update_attempter.cc |
+++ b/update_attempter.cc |
@@ -162,11 +162,18 @@ void UpdateAttempter::Update(const std::string& app_version, |
processor_->set_delegate(this); |
// 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); |
+ } |
shared_ptr<OmahaRequestAction> update_check_action( |
new OmahaRequestAction(prefs_, |
omaha_request_params_, |
NULL, |
- new LibcurlHttpFetcher(GetProxyResolver()))); |
+ update_check_fetcher)); |
adlr
2010/11/29 21:23:28
// passes ownership
petkov
2010/11/29 21:28:19
Done.
|
shared_ptr<OmahaResponseHandlerAction> response_handler_action( |
new OmahaResponseHandlerAction(prefs_)); |
shared_ptr<FilesystemCopierAction> filesystem_copier_action( |