Net::SFTP transferring 200mb+ file problems

Hi,
I’m using the Net::SSH and Net::SFTP gems.

One part of my application transfers a very large file (200-300mb) via
sftp. When this file get’s transferred, I notice that the memory usage
balloons to 400M!

Is this normal?!

My code is very straightforward:

I call the put_file method:

ie:

sftp.put_file src, dest

Thanks,
John.

Hello,

Net::SFTP loads the whole file in memory. Take a look at this:
http://www.elpauer.org/index.php?p=213

A fix is needed but the author says he has no time.


Pau Garcia i Quiles
http://www.elpauer.org
(Due to the amount of work, I usually need 10 days to answer)

Quoting John T. [email protected]:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs