From aaa97d72c0571b517cc0ab2fc485b87cdfd8be5d Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Mon, 27 Nov 2006 11:20:23 -0800 Subject: [project @ robey@lag.net-20061127192023-ns5lhww0jc84f21t] absorb socket.errors caused by a closed socket if we knew it was closed --- paramiko/packet.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/paramiko/packet.py b/paramiko/packet.py index 11ccac7a..e2c89592 100644 --- a/paramiko/packet.py +++ b/paramiko/packet.py @@ -218,6 +218,8 @@ class Packetizer (object): # we need to work around it. if (type(e.args) is tuple) and (len(e.args) > 0) and (e.args[0] == errno.EAGAIN): got_timeout = True + elif self.__closed: + raise EOFError() else: raise if got_timeout: -- cgit v1.2.3