diff options
| author | MarcoFalke <[email protected]> | 2016-06-03 08:52:45 +0200 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2016-06-03 08:53:43 +0200 |
| commit | ae5575ba41c8a782805afb1c08730343cfc22397 (patch) | |
| tree | 9a39a5ed851d901982ba5e888a035dfd703a7da5 | |
| parent | Merge #7997: replace mapNextTx with slimmer setSpends (diff) | |
| parent | Fix interrupted HTTP RPC connection workaround for Python 3.5+ (diff) | |
| download | discoin-ae5575ba41c8a782805afb1c08730343cfc22397.tar.xz discoin-ae5575ba41c8a782805afb1c08730343cfc22397.zip | |
Merge #8139: Fix interrupted HTTP RPC connection workaround for Python 3.5+
f45f51e Fix interrupted HTTP RPC connection workaround for Python 3.5+ (Pieter Wuille)
| -rw-r--r-- | qa/rpc-tests/test_framework/authproxy.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qa/rpc-tests/test_framework/authproxy.py b/qa/rpc-tests/test_framework/authproxy.py index e5f7ab365..95b2be658 100644 --- a/qa/rpc-tests/test_framework/authproxy.py +++ b/qa/rpc-tests/test_framework/authproxy.py @@ -124,6 +124,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 |