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
experimental/szager/collated-output
phajdan.jr@chromium.org 12 years ago
parent ca4fdfd874
commit c2f94e78a5

@ -385,7 +385,8 @@ class Rietveld(object):
except urllib2.URLError, e: except urllib2.URLError, e:
if retry >= (maxtries - 1): if retry >= (maxtries - 1):
raise 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. # Usually internal GAE flakiness.
raise raise
# If reaching this line, loop again. Uses a small backoff. # If reaching this line, loop again. Uses a small backoff.

Loading…
Cancel
Save