Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Net:sftp module is slow and hangs

by cengineer (Pilgrim)
on Aug 21, 2007 at 13:39 UTC ( [id://634082]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://634082]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 19:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found