diff options
author | Joe Gregorio <jcgregorio@google.com> | 2016-01-26 14:32:20 -0500 |
---|---|---|
committer | Joe Gregorio <jcgregorio@google.com> | 2016-01-26 14:32:20 -0500 |
commit | eb7468561714a5b700d5a3d8fa1a8794de02b9ef (patch) | |
tree | cc01d59649b049b2f790e784110d1f815e6e1bf0 | |
parent | 37060d2d3250622452cd6bec3614dfa70d730a75 (diff) | |
download | httplib2-eb7468561714a5b700d5a3d8fa1a8794de02b9ef.tar.gz |
Restore a branch that was erroneously removed in a previous patch.
-rw-r--r-- | python2/httplib2/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python2/httplib2/__init__.py b/python2/httplib2/__init__.py index 6fa3cc6..639ff5c 100644 --- a/python2/httplib2/__init__.py +++ b/python2/httplib2/__init__.py @@ -1285,6 +1285,8 @@ class Http(object): err = getattr(e, 'args')[0] else: err = e.errno + if err == errno.ECONNREFUSED: # Connection refused + raise if err in (errno.ENETUNREACH, errno.EADDRNOTAVAIL) and i < RETRIES: continue # retry on potentially transient socket errors raise |