[paramiko] Check connection status

James Bardin jbardin at bu.edu
Tue Nov 6 15:03:02 PST 2007


Hi Pepe,

I think that you may want to use transport.is_active()
Paramiko won't throw an exception just because the connection drops, but 
the transport is always checking to make sure the connecting is active.

-jim


Pepe Barbe wrote:
> Hello everyone,
>
> I would like to know what will paramiko do if it is blocking on a recv  
> request, given that there is no data to retrieve, and the connection  
> drops. Will paramiko raise an Exception? Or do I have to frequently  
> timeout and check if the connection is still up?
>
> How can I check if a connection is still up? My guess is  
> transport.is_authenticated but I am not sure.
>
> Thanks,
> Pepe
>
> _______________________________________________
> paramiko mailing list
> paramiko at lag.net
> http://www.lag.net/cgi-bin/mailman/listinfo/paramiko
>
>   



More information about the paramiko mailing list