Pedro,
I can''t remember if I''ve replied to this or not, so if you
already got
a reply, my apologies. Been crazy busy for the last week or so.
There is currently no way to specify a timeout in the connection, but
that sounds like a great idea. A workaround would be to do something
like the following:
require ''timeout''
timeout_in_seconds = 5
session = timeout(timeout_in_seconds) { Net::SSH.start(...) }
...
session.close
I''ll see about adding that to the next version of Net::SSH.
- Jamis
On Mar 22, 2005, at 3:46 AM, Pedro Ferreira wrote:
> Hello.
> I have been using net-ssh and i cant findout how to specify a timeout
> in a connection, NET::SSH.start( ........ ) do {|session| }.
> Does anyone knows??
>
>
> thanks
>
>
> --
> Sem Mais Assunto
> Pedro Miguel Nunes Ferreira
> Telf: +351 917427847
> _______________________________________________
> Net-ssh-users mailing list
> Net-ssh-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/net-ssh-users
>