From effe4117e1fab591ac45a94a249bb85be4fea093 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 21 Sep 2017 23:24:37 +0530 Subject: [PATCH] Treat EPIPE as disconnect too; needed for fakessh. --- mitogen/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitogen/core.py b/mitogen/core.py index 5cf8ffe9..f99da96a 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -134,7 +134,7 @@ def io_op(func, *args): return func(*args), False except OSError, e: IOLOG.debug('io_op(%r) -> OSError: %s', func, e) - if e.errno not in (errno.EIO, errno.ECONNRESET): + if e.errno not in (errno.EIO, errno.ECONNRESET, errno.EPIPE): raise return None, True