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:
20679
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
kmd_ [...] mail.ru
Cc:
AdminCc:

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



Subject: out of memory in scp_get and scp_put
Net-SSH2-0.08 perl 5.8.0 Fedora Code 4 (2.6.13-SMP) I'm found it impossible to scp_put and scp_get large files. Getting or putting files with size about 3Gb or so leads to "out of memory" error. In scp_get code tries to read all the channel data at once my $count = $chan->read($buf, $stat{size}); In scp_put code tries to read the whole file at once my $count = $file->sysread($buf, $stat[7]); Even if you don't get "out of memory" error when dealing with smaller files, the code holds all the data in memory. The simpliest and suppose the only way to fix it is to read and write data repeatedly by small chunks. Hope it will be fixed soon. Thanks.
Fixed in 0.10: scp_get and scp_put now transmit in 8K blocks.


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.