in reply to Net:sftp module is slow and hangs

Take a look at this workaround for Net::SFTP hanging on large file transfers. The problem has to do with servers rekeying SSH sessions and changing the version that your client reports to let the server know it's talking to a non-rekeying client.

As far as the slowness goes, you can try installing Math::BigInt::GMP

Replies are listed 'Best First'.
Re^2: Net:sftp module is slow and hangs
by rajeev (Initiate) on Aug 27, 2007 at 03:05 UTC
    Late in response since I was off from work for a while. Thanks guys for your input. I have used the crashingdaily's advice and it seems to work.
    But as far as speed of this module go, even after installing the Math::BigInt::GMP there is no impact on the speed. For my setup it is taking 90 minutes for a 130 MB file compare to 10 minutes from commandline. When I see on my linux box I have both GMP modules installed
    /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/Math/GMP.pm
    /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/Math/BigInt/GMP.pm
    Do I need to uninstall the Math::GMP and then install Math::BigInt::GMP? I am wondering which GMP is used by Net::SFTP module. Thx.