On Tue, Aug 14, 2007 at 09:26:19AM +0200, Daniel Stenberg wrote: > On Mon, 13 Aug 2007, Peter O'Gorman wrote: > > > For a 54Mb file from localhost, sftp(1) takes 8 seconds with -B 131072, > > sftp_nonblock with a 128Kb buffer takes .... 8 seconds. > > That just... rocks!
*sigh* When I went to patch curl, I noticed my error - I did not verify that the output file was the same as the input, it does in fact take libssh2 those 8 seconds to create a zero length file because 128Kb is more than the limit LIBSSH2_SFTP_PACKET_MAXLEN (40000). So, the maximum size for the buffer is 40000 bytes, which, is still lots better than the 1024 is sftp_nonblock.c, but real speedy, it isn't. Back to the drawing board :( Peter ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ libssh2-devel mailing list libssh2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel