www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: read-window fix?

Re: read-window fix?

From: Ben Kibbey <bjk_at_luxsci.net>
Date: Sun, 17 Feb 2013 09:03:39 -0500

On Wed, 16 Jan 2013 18:24:04 -0800, Nathan Myers writes:
> This patch seems to improve matters, for the slow.c just posted.
> I'm not sure I understand all the implications of moving the adjust
> after the read, but I don't see how to know the right adjustment to
> apply without reading first: I very frequently get short reads from
> this function.

This patch works well for me. Without it and when doing alot of short
reads from an SSH server the download rate drops sharply after about
200K. With this patch applied the speed is as it is from the beginning
for the duration of the entire transfer.

Ben Kibbey
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2013-02-17

the libssh2 team