Subject: Re: writing to channel limited to 2 Mb?

Re: writing to channel limited to 2 Mb?

From: Henrik Nordström <>
Date: Thu, 11 Aug 2011 00:04:02 +0200

ons 2011-08-10 klockan 22:49 +0200 skrev Daniel Stenberg:

> In order to reach a good flow and transfer speed, you never let the window
> size reach zero. Of course there might still be cases where you really cannot
> accept more data for the moment and then you tell the other side to not send
> more by setting the window to 0.

What is a good method to wait for the window to reopen in libssh2?
Should ret = 0 be handled like EAGAIN? Or is some special handling

The examples seem to busywait if this happens.


Received on 2011-08-11