From c2f94e78a5bf237a7169f7a4c3a0248aefd78643 Mon Sep 17 00:00:00 2001 From: "phajdan.jr@chromium.org" Date: Thu, 10 Oct 2013 20:47:52 +0000 Subject: [PATCH] GTTF: Retry on flaky SSL "EOF occurred in violation of protocol" errors. BUG=none Review URL: https://codereview.chromium.org/26913003 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@227982 0039d316-1c4b-4281-b951-d872f2087c98 --- rietveld.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rietveld.py b/rietveld.py index 7397b295b..aa5897e62 100644 --- a/rietveld.py +++ b/rietveld.py @@ -385,7 +385,8 @@ class Rietveld(object): except urllib2.URLError, e: if retry >= (maxtries - 1): raise - if not 'Name or service not known' in e.reason: + if (not 'Name or service not known' in e.reason and + not 'EOF occurred in violation of protocol' in e.reason): # Usually internal GAE flakiness. raise # If reaching this line, loop again. Uses a small backoff.