Subject: Re: libssh2 read performance. query..

Re: libssh2 read performance. query..

From: Kannamraju P via libssh2-devel <libssh2-devel_at_cool.haxx.se>
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 <daniel_at_haxx.se> 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.
>
> --
>
> / daniel.haxx.se
>

-- 
thanks & Regards,
Raju

_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2017-10-24