Commit 76d576a3 authored by Avery Pennarun's avatar Avery Pennarun

_nb_clean: don't catch EPIPE after all.

EPIPE is a serious error from these places, so we have to actually do
something.  Otherwise the client ends up busy waiting when the server
disconnects by surprise.

Bug noticed in a log from Chetan Kunte.
parent f6e6515a
...@@ -51,7 +51,7 @@ def _nb_clean(func, *args): ...@@ -51,7 +51,7 @@ def _nb_clean(func, *args):
try: try:
return func(*args) return func(*args)
except OSError, e: except OSError, e:
if e.errno not in (errno.EWOULDBLOCK, errno.EAGAIN, errno.EPIPE): if e.errno not in (errno.EWOULDBLOCK, errno.EAGAIN):
raise raise
else: else:
debug3('%s: err was: %s\n' % (func.__name__, e)) debug3('%s: err was: %s\n' % (func.__name__, e))
......
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