mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-04-25 19:58:56 +02:00
_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.
This commit is contained in:
parent
f6e6515a3c
commit
76d576a375
2
ssnet.py
2
ssnet.py
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user