[paramiko] transport.start_client() always waiting for completion_event

Wan Li wanliyou at gmail.com
Wed Jan 20 22:42:23 PST 2010


Hi again,

Currently, I pass in threading.Event() as an argument of
transport.start_client(), and set() the event while timeout.
Shall I must call the transport.close() or SSHClient.close() to make a clean
up?

On Tue, Jan 19, 2010 at 10:48 AM, Wan Li <wanliyou at gmail.com> wrote:

> Hi,
>
> I'm using paramiko to do a bunch of work per 5 minutes, and I found
> occasionally client always looping as we should wait for the negotiation
> done, here:
> Line:446
> while True:
>             event.wait(0.1)
>             if not self.active:
>                 e = self.get_exception()
>                 if e is not None:
>                     raise e
>                 raise SSHException('Negotiation failed.')
>             if event.isSet():
>                 break
>
>   But I don't know why it may always looping there, so I think add a
> timeout for this "endless" loop is fair enough?
>
> Thanks.
>
> --
> >: ~
>



-- 
>: ~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lag.net/pipermail/paramiko/attachments/20100121/a940244e/attachment.html>


More information about the paramiko mailing list