Commit effe4117 authored by David Wilson's avatar David Wilson

Treat EPIPE as disconnect too; needed for fakessh.

parent 9c4bf37c
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment