Treat EPIPE as disconnect too; needed for fakessh.

This commit is contained in:
David Wilson 2017-09-21 23:24:37 +05:30
parent 9c4bf37cfc
commit effe4117e1
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ def io_op(func, *args):
return func(*args), False return func(*args), False
except OSError, e: except OSError, e:
IOLOG.debug('io_op(%r) -> OSError: %s', func, 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 raise
return None, True return None, True