Subject: Re: [PATCH] Send internal packet priority

Re: [PATCH] Send internal packet priority

From: Daniel Stenberg <>
Date: Tue, 6 Sep 2011 22:36:33 +0200 (CEST)

On Tue, 6 Sep 2011, Alexander Lamaison wrote:

> It works in as much as libssh2_sftp_read with a 6MB buffer no longer
> blocks on the first attempt.

Out of curiosity, why do you have such a large buffer to begin with? I've not
seen any benefit with more than 1MB even when speaking over high latency high
bandwidth links.

And related, do you still get problems if you (as a temporary work-around) use
a smaller buffer?

> From watching the network meter, it seems that the 6MBs of data is
> transferred in a fraction of a second but that libssh2 spends the rest of
> the time reassembling it before returning from libssh2_sftp_read.

Sounds like something in the SFTP read functionality is still buggy then...

Can anyone repeat these issues on Linux? I really want to get a proper recipe
done first so that we can test fixes against it in a somewhat controlled

I'll admit I haven't tried this much myself recently, as my time has been
rather limited. Now I intend to ship a 1.3.0 release and then I hope we can
get some time to work on fixing these annoying problems!

Received on 2011-09-06