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:
parent
c091dff994
commit
2262f7f188
|
@ -512,7 +512,7 @@ class Channel (object):
|
||||||
if len(self.in_buffer) <= nbytes:
|
if len(self.in_buffer) <= nbytes:
|
||||||
out = self.in_buffer
|
out = self.in_buffer
|
||||||
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
|
# clear the pipe, since no more data is buffered
|
||||||
self.pipe.clear()
|
self.pipe.clear()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue