don't clear the select pipe when the recv buffer is cleared out, if we're at EOF (found by thomas steinacher)
This commit is contained in:
Robey Pointer 2006-02-01 11:35:36 -08:00
parent c091dff994
commit 2262f7f188
1 changed files with 1 additions and 1 deletions

View File

@ -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: