Skip to content

Commit

Permalink
merge bitcoin#23092: Remove Windows workaround in authproxy (WinError…
Browse files Browse the repository at this point in the history
… 10053)
  • Loading branch information
kwvg committed Dec 15, 2024
1 parent e2095bd commit f3b065c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/functional/test_framework/authproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,8 @@ def _request(self, method, path, postdata):
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)
Expand Down

0 comments on commit f3b065c

Please sign in to comment.