[paramiko] Exception from paramiko. EOFError

Robey Pointer robey at lag.net
Fri Nov 3 11:11:17 PST 2006


On 29 Oct 2006, at 15:15, jdsw wrote:

> Hi
>    I was getting None from open_channel at few places... and found  
> that transport.active was becoming false. (related to gnome-vfs. I  
> do not know the exact cause.. anyone ?)
>
>    After digging and putting print statements... found the following.
>    Basically in run() method of paramiko transport.py , there was a  
> socket exception being thrown with Error 11 Resource Temporarily  
> unavailable. Looking in to doc.. found that clients need to retry  
> the operations and handle EAGAIN from socket.
>
>   Added retry block around the recv where the problem was.  We  
> might have to wrap this while sending too.
>
>  Attached is section of patched transport.py file. Could u please  
> validate and see how this can be encorporated in to mainline.  
> (currently we have released this modification with our product  
> XenMan and telling users to patch it.). I checked 1.6.2 also, this  
> section of the code is not changed.

I checked in a slightly different version of the patch to Packetizer  
in change 409 -- does that solve the problem?  (It's catching EAGAIN,  
just at a lower level.)

robey




More information about the paramiko mailing list