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

Hi Salva, There is no improvement of adding the queue_size. I trust there is no issue with network as am able to download same file by WinSCP and performance is far better. I don't have your mail id so attaching some part of the debug message here

#8788 1310498030.00000 got it!, len:32777, code:103, id:109, status: - #8788 1310498030.00000 queueing msg len: 25, code:5, id:141 ... [32] #8788 1310498030.00000 waiting for message... [32] #8788 1310498031.00000 got it!, len:32777, code:103, id:110, status: - #8788 1310498031.00000 queueing msg len: 25, code:5, id:142 ... [32] #8788 1310498031.00000 waiting for message... [32] #8788 1310498032.00000 got it!, len:32777, code:103, id:111, status: - #8788 1310498032.00000 queueing msg len: 25, code:5, id:143 ... [32] #8788 1310498032.00000 waiting for message... [32] #8788 1310498033.00000 got it!, len:32777, code:103, id:112, status: - #8788 1310498033.00000 queueing msg len: 25, code:5, id:144 ... [32] #8788 1310498033.00000 waiting for message... [32] #8788 1310498034.00000 got it!, len:32777, code:103, id:113, status: - #8788 1310498034.00000 queueing msg len: 25, code:5, id:145 ... [32] #8788 1310498034.00000 waiting for message... [32] #8788 1310498035.00000 got it!, len:32777, code:103, id:114, status: - #8788 1310498035.00000 queueing msg len: 25, code:5, id:146 ... [32] #8788 1310498035.00000 waiting for message... [32] #8788 1310498037.00000 got it!, len:32777, code:103, id:115, status: - #8788 1310498037.00000 queueing msg len: 25, code:5, id:147 ... [32] #8788 1310498037.00000 waiting for message... [32] #8788 1310498038.00000 got it!, len:32777, code:103, id:116, status: - #8788 1310498038.00000 queueing msg len: 25, code:5, id:148 ... [32]

Replies are listed 'Best First'.
Re^3: Net::SFTP::Foreign is slow
by salva (Canon) on Jul 12, 2011 at 21:07 UTC
    What version of the module were you using when you got this output?
      I am using Net::SFTP::Foreign 1.65 and Net_SSH2 0.03
      use Net::SFTP::Foreign; $Net::SFTP::Foreign::debug = 1|32|256;
        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.