Subject: RE: libssh2_sftp_write doesn't hang anymore

RE: libssh2_sftp_write doesn't hang anymore

From: Mark Riordan <mriordan_at_ipswitch.com>
Date: Fri, 12 Nov 2010 19:37:36 -0600

Peter:
> Have pushed a commit which I think may be sufficient to fix the problem.

You fixed it!

However, we are now roughly back to where we were:

Uploads with trace enabled are pretty fast, and result in
reasonably-sized Wireshark captures:

C:\Libs\ssh\libssh2-git\tests>ntimer sftpmrr -a:put -h:172.16.22.182
-port:22 -u
:mrr -p:secret -r:/home/mrr/tmp/myupload -f:c:\temp\mrr10000.txt -debug:3
2>o
ut.log
Not enabling compression.
Authentication methods: publickey,password
Using output buffer size of 32500 bytes
libssh2_sftp_write 1 sent 8000 bytes; 8000 so far
libssh2_sftp_write 2 sent 24000 bytes; 32000 so far
libssh2_sftp_write 3 sent 500 bytes; 32500 so far
libssh2_sftp_write 4 sent 8000 bytes; 40500 so far
libssh2_sftp_write 5 sent 24000 bytes; 64500 so far
libssh2_sftp_write 6 sent 500 bytes; 65000 so far
libssh2_sftp_write 7 sent 32000 bytes; 97000 so far
libssh2_sftp_write 8 sent 500 bytes; 97500 so far
libssh2_sftp_write 9 sent 20000 bytes; 117500 so far
libssh2_sftp_write 10 sent 2500 bytes; 120000 so far
Transferred 0.114 MB
put took 0.063 seconds = 1.817 MB/sec

Capture file:
11/12/2010 07:29 PM 210,405 DebugFast2010-11-12.pcap

Uploads with no tracing enabled are slow, and result in huge captures:

C:\Libs\ssh\libssh2-git\tests>ntimer sftpmrr -a:put -h:172.16.22.182
-port:22 -u
:mrr -p:secret -r:/home/mrr/tmp/myupload -f:c:\temp\mrr10000.txt -debug:2
2>o
ut2.log
Not enabling compression.
Authentication methods: publickey,password
Using output buffer size of 32500 bytes
libssh2_sftp_write 1 sent 4000 bytes; 4000 so far
libssh2_sftp_write 2 sent 4000 bytes; 8000 so far
libssh2_sftp_write 3 sent 4000 bytes; 12000 so far
libssh2_sftp_write 4 sent 4000 bytes; 16000 so far
libssh2_sftp_write 5 sent 4000 bytes; 20000 so far
libssh2_sftp_write 6 sent 8000 bytes; 28000 so far
libssh2_sftp_write 7 sent 4500 bytes; 32500 so far
libssh2_sftp_write 8 sent 8000 bytes; 40500 so far
libssh2_sftp_write 9 sent 4000 bytes; 44500 so far
libssh2_sftp_write 10 sent 8000 bytes; 52500 so far
libssh2_sftp_write 11 sent 8000 bytes; 60500 so far
libssh2_sftp_write 12 sent 4500 bytes; 65000 so far
libssh2_sftp_write 13 sent 8000 bytes; 73000 so far
libssh2_sftp_write 14 sent 8000 bytes; 81000 so far
libssh2_sftp_write 15 sent 8000 bytes; 89000 so far
libssh2_sftp_write 16 sent 4000 bytes; 93000 so far
libssh2_sftp_write 17 sent 4500 bytes; 97500 so far
libssh2_sftp_write 18 sent 8000 bytes; 105500 so far
libssh2_sftp_write 19 sent 8000 bytes; 113500 so far
libssh2_sftp_write 20 sent 4000 bytes; 117500 so far
libssh2_sftp_write 21 sent 2500 bytes; 120000 so far
Transferred 0.114 MB
put took 2.656 seconds = 0.043 MB/sec

Capture file:
11/12/2010 07:30 PM 20,330,815 NoDebugSlow2010-11-12.pcap

Mark

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-11-13