libnet - Net::FTP slower xfr than MS cmd line FTP (uses less bandwidth)

Posted on Fri Jun 6 22:50:36 2008 by jsims
Net::FTP slower xfr than MS cmd line FTP (uses less bandwidth)
Hi all,

I know there is a Net::FTP::Throttle module but even with just standard Net::FTP my script only sends files around .4 Mbps. The MS command line FTP client uses all available bandwidth. The max bandwidth I have available is 2mbps over a wan link from London to Copenhagen. I have tried both ascii and binary with no real improvement. the test file being sent is a 5Mb zip file. When completed, this will be transferring 5-15Gb zip files. I am using ActivePerl, transferring from one win2003 server to another. Does anyone know how I can increase the amount of bandwidth Net::FTP uses to transfer?

My goal is to convert a very weak file sync infrastructure dependent on MS robocopy and clumsy batch files, with a more robust Perl solution. This FTP issue is the only bottle neck I have run into so far.

Thanks, -J
Write a response