This month's Index
Subject: Download text file via SFTP
Download text file via SFTP
From: Joern Heissler <libssh2_at_wulf.eu.org>
Date: Fri, 29 Aug 2014 10:45:31 +0200
I'm trying to download a large text file using the sftp protocol.
The remote server runs on "Maverick SSHD". I'm using libssh2-1.4.3 (debian unstable).
I enabled compression and negotiated zlib because it's a text file.
Next, I compared the speed to what OpenSSH's `sftp' utility achieves, and
Then I increased buffer size for libssh2_sftp_read to a big value. It
tcpdump shows that the packets sent by the server are mostly around
I found that when I change MAX_SFTP_READ_SIZE from 2000 to a larger
To me it looks like the server has strange TCP_NODELAY / TCP_CORK
The optimal value for MAX_SFTP_READ_SIZE heavily depends on the specific