Subject: Re: Buffersize bigger than 1024

Re: Buffersize bigger than 1024

From: Daniel Stenberg <>
Date: Wed, 6 Oct 2010 22:58:20 +0200 (CEST)

On Thu, 16 Sep 2010, double wrote:

> To use a buffer-size bigger than 1024 byte still has some issues. The
> attached testcase works perfectly, if the buffersize is 1024, otherwise it
> won't.

So how is your test case different than the sftp_write_nonblock example? It
uses a 100K buffer and I just tried it against my localhost:

libssh2_sftp_open() is done, now send data!
1024000000 bytes in 55 seconds makes 18618181.8 bytes/sec
all done

Received on 2010-10-06