Commit 7d674e9e authored by Avery Pennarun's avatar Avery Pennarun

ssnet: throw a nicer-looking Fatal when the mux connection dies.

When it happens, it's probably because the client died and the server hasn't
noticed yet.
parent a21e8c7a
......@@ -287,7 +287,10 @@ class Mux(Handler):
def fill(self):
self.rsock.setblocking(False)
try:
b = _nb_clean(os.read, self.rsock.fileno(), 32768)
except OSError, e:
raise Fatal('other end: %r' % e)
#log('<<< %r\n' % b)
if b == '': # EOF
self.ok = False
......
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