timer for a function
Aahz
aahz at pythoncraft.com
Thu Feb 11 21:38:46 EST 2010
In article <mailman.1986.1265390557.28905.python-list at python.org>,
mk <mrkafk at 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 (aahz at 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'. :-)"
More information about the Python-list
mailing list