summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvery Pennarun <apenwarr@gmail.com>2010-10-01 18:25:03 -0700
committerAvery Pennarun <apenwarr@gmail.com>2010-10-01 18:25:03 -0700
commit76d576a37585885527635c7ee7fb3935870573a9 (patch)
treeecb43cf9ae8fdd67c39cc24e84973db56a685bae
parentf6e6515a3cc3cf183efa5de3dc330a5ffa9d5032 (diff)
_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.
-rw-r--r--ssnet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssnet.py b/ssnet.py
index 7040f16..7dcd70e 100644
--- a/ssnet.py
+++ b/ssnet.py
@@ -51,7 +51,7 @@ def _nb_clean(func, *args):
try:
return func(*args)
except OSError, e:
- if e.errno not in (errno.EWOULDBLOCK, errno.EAGAIN, errno.EPIPE):
+ if e.errno not in (errno.EWOULDBLOCK, errno.EAGAIN):
raise
else:
debug3('%s: err was: %s\n' % (func.__name__, e))