Subject: | Net::SSH2 warns on connect from Timeout option |
Net::SSH2 0.22 produces a warning on connect(). This seems to be caused
by the new timeout option.
Odd number of elements in hash assignment at
/usr/local/stow/perl-5.8.8/lib/perl5/5.8.8/i686-linux-thread-multi/IO/Socket.pm
line 41.
$sock = IO::Socket::INET->new(
PeerHost => $_[0],
PeerPort => $_[1],
$opts{Timeout},
);
I am pretty sure IO::Socket::INET::new takes a hash of options and the
timeout should be passed as key and value.
$sock = IO::Socket::INET->new(
PeerHost => $_[0],
PeerPort => $_[1],
Timeout => $opts{Timeout},
);