|Date:||Wed, 21 Oct 2015 08:47:58 -0400|
|From:||Kris Desjardins <firstname.lastname@example.org>|
scp_put fails continously with the following errors:
Use of uninitialized value $wr in numeric lt (<) at /export/home/ics/perl5/perlbrew/perls/perl-5.18.4/lib/site_perl/5.18.4/i86pc-solaris-thread-multi/Net/SSH2.pm line 501.
Use of uninitialized value $wr in addition (+) at /export/home/ics/perl5/perlbrew/perls/perl-5.18.4/lib/site_perl/5.18.4/i86pc-solaris-thread-multi/Net/SSH2.pm line 502.
Use of uninitialized value $wr in substr at /export/home/ics/perl5/perlbrew/perls/perl-5.18.4/lib/site_perl/5.18.4/i86pc-solaris-thread-multi/Net/SSH2.pm line 503.
...and eventually I get a PIPE signal.
I'm running the latest Net::SSH2 built against libssh2-1.6.0 with perl 5.18.4 on Solaris 10
I've also noticed in SSH2.xs that net_ch_write can return undef and the code in the lines above in the SSH2.pm module does not handle undef.
If I run an scp_put in a test script it works ok, but in the actual app, the transfers take place in a separate thread.