in reply to Re^3: Net::SFTP::Foreign is slow
in thread Net::SFTP::Foreign is slow

I am using Net::SFTP::Foreign 1.65 and Net_SSH2 0.03
use Net::SFTP::Foreign; $Net::SFTP::Foreign::debug = 1|32|256;

Replies are listed 'Best First'.
Re^5: Net::SFTP::Foreign is slow
by salva (Canon) on Jul 12, 2011 at 21:45 UTC
    Well, the debugging output shows something is going wrong because commands are being pipelined but then responses are arriving late anyway... it makes me think that the problem is not in the module but in plink, in Windows or in the network.

    Where is located the server? is it in the same LAN? data-center? city? country? continent?

    What protocol are you using for the WinSCP tests, SCP or SFTP?

    What Windows version are you using?

    I will try to reproduce the problem myself tomorrow in a Windows machine.

      1) Servers are located in different Continent. 2) Protocol in WinSCP is SFTP and Allow SCP fallback is true 3) Windows version is 2008 Server 64Bit 4) Perl version is v5.10.1 built for MSWin32-x64-multi-thread Please let me know if you need more details on this.
        Even if it is in a different continent I don't think latency could be the issue with a queue size of 32 packets (for instance, for a connection with 1 second of round trip, with quote_size=>32, the transfer speed would be limited to 1MB/s). Anyway, you can try increasing it to 64 or 128 just to be sure.

        Second think to try is changing the transport layer. Use the Net_SSH2 backend or the OpenSSH client instead of plink and see how it goes.