Net::SFTP transferring 200mb+ file problems

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:


sftp.put_file src, dest



Net::SFTP loads the whole file in memory. Take a look at this:

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

Pau Garcia i Quiles
(Due to the amount of work, I usually need 10 days to answer)

Quoting John T. [email protected]: