Browse Source

Fix interrupted HTTP RPC connection workaround for Python 3.5+

pull/4/head
Pieter Wuille 8 years ago
committed by Jack Grigg
parent
commit
2edad86b2d
No known key found for this signature in database GPG Key ID: 6A6914DAFBEA00DA
  1. 5
      qa/rpc-tests/test_framework/authproxy.py

5
qa/rpc-tests/test_framework/authproxy.py

@ -125,6 +125,11 @@ class AuthServiceProxy(object):
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

Loading…
Cancel
Save