Subject: Re: libssh2 read performance. query..

Re: libssh2 read performance. query..

From: Kannamraju P via libssh2-devel <>
Date: Tue, 24 Oct 2017 11:47:58 -0400

It seems that the reads are done in sequential order , in networks which
have latency this slows down the read quite a bit.
Is there any workaround or configuration at library level or TCP level to
tune this.

On Tue, Oct 24, 2017 at 11:18 AM, Daniel Stenberg <> wrote:

> On Sat, 21 Oct 2017, Kannamraju P via libssh2-devel wrote:
> I was running a test to check the speed of SFTP read , A single read of
>> 60K bytes with 64K buffer is resulting in these many packets on the wire .
>> Any input on optimizing read would be really helpful.
> It behaves like that to optimize reading! libssh2 will send a lot of small
> reads in a "pipelining" manner so that you don't have to wait for any
> single large packet to return but it can return data as soon as the first
> packet has arrived.
> --
> /

thanks & Regards,

Received on 2017-10-24