Subject: Re: libssh2 read performance. query..

Re: libssh2 read performance. query..

From: Daniel Stenberg <>
Date: Tue, 24 Oct 2017 17:18:22 +0200 (CEST)

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

Received on 2017-10-24