forked from goodboy/tractor
1
0
Fork 0

Remap windows specific connection reset error

transport_cleaning
Tyler Goodlet 2021-07-04 10:25:19 -04:00
parent 1edf5c2f06
commit 3f75732b02
1 changed files with 7 additions and 1 deletions

View File

@ -69,7 +69,13 @@ class MsgpackTCPStream:
# a quick connect then drop for root actors when
# checking to see if there exists an "arbiter"
# on the chosen sockaddr (``_root.py:108`` or thereabouts)
if '[Errno 104]' in msg:
if (
# nix
'[Errno 104]' in msg or
# windows
'[WinError 10054]' in msg
):
raise TransportClosed(
f'{self} was broken with {msg}'
)