merge bitcoin#23092: Remove Windows workaround in authproxy (WinError 10053)

This commit is contained in:
Kittywhiskers Van Gogh 2021-09-25 09:33:01 +02:00
parent e2095bd68a
commit f3b065cd9c
No known key found for this signature in database
GPG Key ID: 30CD0C065E5C4AAD

View File

@ -116,10 +116,8 @@ class AuthServiceProxy():
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))
# Workaround for a bug on macOS. See https://bugs.python.org/issue33450
retry = retry or ('[Errno 41] Protocol wrong type for socket' in str(e))
retry = '[Errno 41] Protocol wrong type for socket' in str(e)
if retry:
self.__conn.close()
self.__conn.request(method, path, postdata, headers)