Treat EPIPE as disconnect too; needed for fakessh.
This commit is contained in:
parent
9c4bf37cfc
commit
effe4117e1
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue