In article <mailman.1986.1265390557.28905.python-l...@python.org>,
mk  <mrk...@gmail.com> wrote:
>
>self.conobj = paramiko.SSHClient()
>
>self.conobj.connect(self.ip, username=self.username, 
>key_filename=self.sshprivkey, port=self.port, timeout=opts.timeout)
>
>2. very slow SSH host that is hanging for 30+ seconds on key exchange.
>
>The timeout in the options regards only a socket timeout, not further 
>stages of connection negotiation, so it doesn't work there.

Does paramiko offer any kind of callback?  In a similar situation with
pycurl, I built my own timer into a callback.
-- 
Aahz (a...@pythoncraft.com)           <*>         http://www.pythoncraft.com/

"At Resolver we've found it useful to short-circuit any doubt and just        
refer to comments in code as 'lies'. :-)"
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to