summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Gregorio <jcgregorio@google.com>2016-01-26 14:32:20 -0500
committerJoe Gregorio <jcgregorio@google.com>2016-01-26 14:32:20 -0500
commiteb7468561714a5b700d5a3d8fa1a8794de02b9ef (patch)
treecc01d59649b049b2f790e784110d1f815e6e1bf0
parent37060d2d3250622452cd6bec3614dfa70d730a75 (diff)
downloadhttplib2-eb7468561714a5b700d5a3d8fa1a8794de02b9ef.tar.gz
Restore a branch that was erroneously removed in a previous patch.
-rw-r--r--python2/httplib2/__init__.py2
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