Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: tools/findit/common/http_client_local.py

Issue 551433003: [Findit] Fix network timeout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase again. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/findit/common/http_client.py ('k') | tools/findit/crash_utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/findit/common/http_client_local.py
diff --git a/tools/findit/common/http_client_local.py b/tools/findit/common/http_client_local.py
index 8907bc03c15cddde2f844537f6e5fb2861c5b97a..b8a168dce24b4f1c5837d7184743278c73a557ff 100644
--- a/tools/findit/common/http_client_local.py
+++ b/tools/findit/common/http_client_local.py
@@ -218,6 +218,9 @@ def _SendRequest(url, timeout=None):
except urllib2.HTTPError as e:
status_code = e.code
content = None
+ except (ssl.SSLError, httplib.BadStatusLine, IOError):
+ status_code = -1
+ content = None
return status_code, content
@@ -226,7 +229,7 @@ class HttpClientLocal(http_client.HttpClient):
"""This http client is used locally in a workstation, GCE VMs, etc."""
@staticmethod
- def Get(url, params={}, timeout=60, retries=5, retry_interval=0.5,
+ def Get(url, params={}, timeout=120, retries=5, retry_interval=0.5,
retry_if_not=None):
if params:
url = '%s?%s' % (url, urllib.urlencode(params))
« no previous file with comments | « tools/findit/common/http_client.py ('k') | tools/findit/crash_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698