diff options
author | Robey Pointer <robey@lag.net> | 2006-11-27 11:20:23 -0800 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2006-11-27 11:20:23 -0800 |
commit | aaa97d72c0571b517cc0ab2fc485b87cdfd8be5d (patch) | |
tree | 6df051cba0df210a2ab4a9d2455e50b8822ce9da | |
parent | fec76c51b161dbf823e0b3d58d0fd0ab324d2443 (diff) |
[project @ robey@lag.net-20061127192023-ns5lhww0jc84f21t]
absorb socket.errors caused by a closed socket if we knew it was closed
-rw-r--r-- | paramiko/packet.py | 2 |
1 files changed, 2 insertions, 0 deletions
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: |