Skip Menu |

This queue is for tickets about the Net-SSH2 CPAN distribution.

Report information
The Basics
Id: 48790
Status: resolved
Priority: 0/
Queue: Net-SSH2

People
Owner: Nobody in particular
Requestors: ianburrell [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.22
Fixed in: (no value)



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}, );
Thank you, fixed in 0.23 -- Rafael