From 3f75732b0224e6ad57f36a46628372610cc92802 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 4 Jul 2021 10:25:19 -0400 Subject: [PATCH] Remap windows specific connection reset error --- tractor/_ipc.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tractor/_ipc.py b/tractor/_ipc.py index ec8981f..d6afc33 100644 --- a/tractor/_ipc.py +++ b/tractor/_ipc.py @@ -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}' )