CC: | dbrobins [...] davidrobins.net, xraduhx [...] yahoo.com |
Subject: | Net::SSH2 - problem with scp_get() call |
Date: | Thu, 18 Oct 2007 16:33:22 -0700 (PDT) |
To: | bug-Net-SSH2 [...] rt.cpan.org |
From: | Radu Handorean <xraduhx [...] yahoo.com> |
Environment:
Linux SUSE SLES 10.2 on an 64 bit AMD Opteron machine.
Perl version v5.8.8 built for x86_64-linux-thread-multi
Net::SSH2 version 0.10
libssh2 version 0.17
The transfer is attempted between two accounts on the same machine.
The problem:
my $ssh2 = Net::SSH2->new();
$ssh2->connect($sourceServer) or die ("Unable to connect\n");
$ssh2->auth_keyboard($toyName, $toyPassword) or die ("Unable to login\n");
$ssh2->scp_get($sourceFileName);
$ssh2->disconnect();
It behaves inconsistently but just doesn't work. The file to be transfered was 15mb+ (later tried on a 26mb+)
The scp_get call either returns before completing the transfer (usually a few tens/hundreds of kb, NEVER 1mb) or never returns and gets stuck after having transferred about 12mb (don't remember if it hangs at the very same position every time but the size of the "result" file is always some 12mb out of the total of 15mb).
The problem was reproduced on windows machine as well (don't know any other details about the environment as I was not the one to run these other tests).
Further investigations by another person that reported back to me reveals problems with the module if used with libssh2 version 0.15 and later. Version 0.14 seems to work.
Krambambuli from perlmonks.org helped with the analysis (many thanks!).
Thanks,
Radu
Show quoted text
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com