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

Unified Diff: rietveld.py

Issue 1876093002: rietveld: retry more transient errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: +1 Created 4 years, 8 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: rietveld.py
diff --git a/rietveld.py b/rietveld.py
index 22168f572709de041fb17d18020c590ea2cadb44..028b0b00d8ea3d20d7bd729f6b3a0f700ac95d51 100644
--- a/rietveld.py
+++ b/rietveld.py
@@ -441,7 +441,11 @@ class Rietveld(object):
for retry_anyway in (
'Name or service not known',
'EOF occurred in violation of protocol',
- 'timed out'):
+ 'timed out',
+ # See http://crbug.com/601260.
+ 'urlopen error [Errno 10060] A connection attempt failed',
+ 'urlopen error [Errno 104] Connection reset by peer',
+ ):
if retry_anyway in reason_as_str:
return True
return False # Assume permanent otherwise.
« 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