diff options
author | Robey Pointer <robey@master-shake.local> | 2006-02-01 11:35:36 -0800 |
---|---|---|
committer | Robey Pointer <robey@master-shake.local> | 2006-02-01 11:35:36 -0800 |
commit | 2262f7f188550249456f4b9ecb7eefd6215d4314 (patch) | |
tree | 152da4daade9f4039a7e8fd985de953a65c3cd38 | |
parent | c091dff994c17173388bca990c7d0d9e2b3382ed (diff) |
[project @ robey@master-shake.local-20060201193536-86f3fd393e7ef8f9]
don't clear the select pipe when the recv buffer is cleared out, if we're at EOF (found by thomas steinacher)
-rw-r--r-- | paramiko/channel.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/channel.py b/paramiko/channel.py index ee2ec495..0773b855 100644 --- a/paramiko/channel.py +++ b/paramiko/channel.py @@ -512,7 +512,7 @@ class Channel (object): if len(self.in_buffer) <= nbytes: out = self.in_buffer self.in_buffer = '' - if self.pipe is not None: + if (self.pipe is not None) and not (self.closed or self.eof_received): # clear the pipe, since no more data is buffered self.pipe.clear() else: |