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

Unified Diff: third_party/upload.py

Issue 6345001: Work around App Engine flakiness by retrying upon URLError... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: '' Created 9 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/upload.py
===================================================================
--- third_party/upload.py (revision 71113)
+++ third_party/upload.py (working copy)
@@ -402,6 +402,14 @@
response = f.read()
f.close()
return response
+ except urllib2.URLError, e:
+ reason = e.reason
+ if isinstance(reason, str) and reason.find("110") != -1:
+ # Connection timeout error.
+ if tries <= 3:
+ # Try again.
+ continue
+ raise
except urllib2.HTTPError, e:
if tries > 3:
raise
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698