diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-04-11 20:29:35 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-04-12 09:04:15 -0400 |
commit | fab98992043f47fa7240d7c1217920d0c4f783a2 (patch) | |
tree | c1916bfb472c84b8939bb67e35541135de94cf26 /test/functional/test_framework/authproxy.py | |
parent | faa655731eac751d4eb494268e2c815493ba9382 (diff) |
test: Try once more when RPC connection fails on Windows
Diffstat (limited to 'test/functional/test_framework/authproxy.py')
-rw-r--r-- | test/functional/test_framework/authproxy.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/test_framework/authproxy.py b/test/functional/test_framework/authproxy.py index 3a2c59ee5e..05308931e3 100644 --- a/test/functional/test_framework/authproxy.py +++ b/test/functional/test_framework/authproxy.py @@ -112,6 +112,15 @@ class AuthServiceProxy(): self.__conn.close() self.__conn.request(method, path, postdata, headers) return self._get_response() + except OSError as e: + retry = ( + '[WinError 10053] An established connection was aborted by the software in your host machine' in str(e)) + if retry: + self.__conn.close() + self.__conn.request(method, path, postdata, headers) + return self._get_response() + else: + raise def get_request(self, *args, **argsn): AuthServiceProxy.__id_count += 1 |