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

Wan Li wanliyou at gmail.com
Mon Jan 18 18:48:11 PST 2010


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/20100119/d3ce847f/attachment.html>


More information about the paramiko mailing list