diff options
author | Avery Pennarun <apenwarr@gmail.com> | 2010-10-01 18:25:03 -0700 |
---|---|---|
committer | Avery Pennarun <apenwarr@gmail.com> | 2010-10-01 18:25:03 -0700 |
commit | 76d576a37585885527635c7ee7fb3935870573a9 (patch) | |
tree | ecb43cf9ae8fdd67c39cc24e84973db56a685bae | |
parent | f6e6515a3cc3cf183efa5de3dc330a5ffa9d5032 (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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) |