From 2262f7f188550249456f4b9ecb7eefd6215d4314 Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Wed, 1 Feb 2006 11:35:36 -0800 Subject: [PATCH] [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) --- paramiko/channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paramiko/channel.py b/paramiko/channel.py index ee2ec49..0773b85 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: