Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id:
30110
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
xraduhx [...] yahoo.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



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

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Seems OK with a 20M file on libssh2 0.18.0-20071110 and Net::SSH2 0.18 candidate; reactivate if you have problems with libssh2/Net::SSH2 0.18+.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.