Permalink
Browse files

Merge #8139: Fix interrupted HTTP RPC connection workaround for Pytho…

…n 3.5+

f45f51e Fix interrupted HTTP RPC connection workaround for Python 3.5+ (Pieter Wuille)
  • Loading branch information...
MarcoFalke committed Jun 3, 2016
2 parents a82f033 + f45f51e commit ae5575ba41c8a782805afb1c08730343cfc22397
Showing with 5 additions and 0 deletions.
  1. +5 −0 qa/rpc-tests/test_framework/authproxy.py
@@ -124,6 +124,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

0 comments on commit ae5575b

Please sign in to comment.