mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-02-07 12:44:23 +00:00
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)
This commit is contained in:
commit
ae5575ba41
@ -124,6 +124,11 @@ class AuthServiceProxy(object):
|
|||||||
return self._get_response()
|
return self._get_response()
|
||||||
else:
|
else:
|
||||||
raise
|
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):
|
def __call__(self, *args):
|
||||||
AuthServiceProxy.__id_count += 1
|
AuthServiceProxy.__id_count += 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user