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

Unified Diff: dashboard/dashboard/services/gitiles_service.py

Issue 3013753002: [pinpoint] Increase Gitiles service timeout. (Closed)
Patch Set: Dashboard unit tests. Created 3 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 | « no previous file | dashboard/dashboard/services/gitiles_service_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/services/gitiles_service.py
diff --git a/dashboard/dashboard/services/gitiles_service.py b/dashboard/dashboard/services/gitiles_service.py
index 2c5485b4f5b260155f8fb71df8177b1fe8f3ac31..d5a9da8525499e17b82ec782697017c9adfe4873 100644
--- a/dashboard/dashboard/services/gitiles_service.py
+++ b/dashboard/dashboard/services/gitiles_service.py
@@ -100,7 +100,7 @@ def _Request(url):
def _RequestAndProcessHttpErrors(url):
"""Requests a URL, converting HTTP errors to Python exceptions."""
- response = urlfetch.fetch(url)
+ response = urlfetch.fetch(url, deadline=10)
if response.status_code == 404:
raise NotFoundError('Server returned HTTP code %d for %s' %
« no previous file with comments | « no previous file | dashboard/dashboard/services/gitiles_service_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698