Perl: the Markov chain saw | |
PerlMonks |
Re^3: Net::SSH::Perl ConnectTimeout (ssh -o option)by Anonymous Monk |
on Sep 21, 2007 at 18:49 UTC ( [id://640422]=note: print w/replies, xml ) | Need Help?? |
This is a very late reply, but this has still not been implemented. I added the following to Perl.pm, right after the socket creation to give me a send/receive timeout of 10 seconds: setsockopt($sock, SOL_SOCKET, SO_SNDTIMEO, pack('LL', 10, 0) ) or die $!; setsockopt($sock, SOL_SOCKET, SO_RCVTIMEO, pack('LL', 10, 0) ) or die $!; Hope that helps. --mf
In Section
Seekers of Perl Wisdom
|
|