in reply to Re: Net:FTP too slow
in thread Net:FTP too slow

Hi,thanks.
But should I increase or decrease?
from Net::FTP:
BlockSize - This is the block size that Net::FTP will use when doing transfers. (defaults to 10240)
these two posts say 'alter to 4096'.

Replies are listed 'Best First'.
Re^3: Net:FTP too slow
by marto (Cardinal) on Nov 08, 2011 at 09:58 UTC

    What happened when you tried changing it to the value specified in the two threads I linked to?

      I changed to 4096, a litter faster. I will test other blocksize.
Re^3: Net:FTP too slow
by Khen1950fx (Canon) on Nov 08, 2011 at 10:26 UTC
    Here, 10240 refers to bytes; hence, that's 1024K. "alter to 4096" means 4096K. I usually do a BlockSize of 8192K.
      Hey,
      'Here, 10240 refers to bytes; hence, that's 1024K. "alter to 4096" means 4096K. I usually do a BlockSize of 8192K.'
      10240bytes=1024K?
      BlockSize of 8192K : should I write BlockSize=>8192*1024,or BlockSize=>8192?
      thanks.
        The default is 10240 bytes:
        BlockSize => 1024
        Under the hood:

        Net::FTP will silently do the right thing. The cmdline ftp does 1024, so it seems that 1024, 2048, 4096, etc. would be used by Net::FTP.

        I hope that helps?