in reply to Net::SSH::Perl ConnectTimeout (ssh -o option)
|Replies are listed 'Best First'.|
Re^2: Net::SSH::Perl ConnectTimeout (ssh -o option)
by codejerk (Initiate) on Aug 10, 2006 at 13:19 UTC
To the best of my knowledge, the fault is not in my code. If you dig into Net::SSH::Perl's Config.pm, you can easily find the routine for parsing the -o style options. ConnectTimeout is not parsed at all, and if you dig a bit more, you'll see that the socket is not created with any sort of timeout other than the default.
My question is less about how to make Net::SSH::Perl work for me, and more about how to implement a socket timeout given the current form of Net::SSH::Perl's socket implementation. I'm curious if anyone else has ever had a need for it and attempted a modification or workaround to incorporate a timeout.
All of that said... if a code snippet is what you want, here ya go :) :
from Net::SSH::Perl::Config -
as you can see, the option "ConnectTimeout" is not provided for.
here we see that the socket is created with the Simple Socket.pm method, with no configurable timeout.
and for fun, my usage:
by paradoxdump (Initiate) on Feb 04, 2009 at 03:57 UTC