[paramiko] Possible bug in Channel.fileno()
Robey Pointer
robey at lag.net
Sun Oct 28 20:10:41 PDT 2007
On 25 Oct 2007, at 13:08, Richard Cooper wrote:
> I noticed that the select.select() call returns when there is stdout
> data waiting but it blocks if there is stderr data waiting but
> nothing on stdout. The obvious fix seems to be to add the following
> code to Channel.fileno()
>
> self.in_stderr_buffer.set_event(self._pipe)
>
> to match the existing
>
> self.in_buffer.set_event(self._pipe)
>
> That fixes the problem for me but I have no idea if it's the right
> fix or even if I'm using select.select() correctly . Does it look
> right to you?
I verified this is happening. The fix wasn't quite as simple as that
(since either stdout or stderr needs to be able to trigger the
select), but I think I got it in change 450.
> I was going to check if this had already been fixed in bazaar but the
> "browse the source using loggerhead" link on http://www.lag.net/
> paramiko/ isn't working.
Oops! Should be back now.
robey
More information about the paramiko
mailing list