Skip to content

Commit

Permalink
Merge bitcoin#8139: Fix interrupted HTTP RPC connection workaround fo…
Browse files Browse the repository at this point in the history
…r Python 3.5+

f45f51e Fix interrupted HTTP RPC connection workaround for Python 3.5+ (Pieter Wuille)
  • Loading branch information
MarcoFalke authored and codablock committed Dec 22, 2017
1 parent fb88e9b commit af51e59
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qa/rpc-tests/test_framework/authproxy.py
Expand Up @@ -126,6 +126,11 @@ def _request(self, method, path, postdata):
return self._get_response()
else:
raise
except BrokenPipeError:
# Python 3.5+ raises this instead of BadStatusLine when the connection was reset
self.__conn.close()
self.__conn.request(method, path, postdata, headers)
return self._get_response()

def __call__(self, *args):
AuthServiceProxy.__id_count += 1
Expand Down

0 comments on commit af51e59

Please sign in to comment.