Subject: Re: libssh2_sftp_read reads a number of bytes smaller than both the file size and the specified buffer size

Re: libssh2_sftp_read reads a number of bytes smaller than both the file size and the specified buffer size

From: Peter Stuge <peter_at_stuge.se>
Date: Thu, 5 Apr 2012 01:14:15 +0200

Adam Craig wrote:
> My understanding is that using larger packets and thus uploading or
> downloading in fewer calls can be faster up to a point

SFTP is fairly low-level. Consider that across the internet you
rarely have larger MTUs than 1500 bytes.

> I will try some other sizes and see.

Looking forward to your results! Will you try both short and long
links?

//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-04-05