Le 20/09/15 18:04, Stef Bon a écrit :
> The main eventloop will get a reply from the server, will queue it and
> send a pthread_broadcast to wake up the waiting thread.
> It's not so easy to implement this. The mainloop will not only get a
> signal when receiving a reply for the messages send, but also a window
> adjust message
> (SSH_MSG_CHANNEL_WINDOW_ADJUST)  to name one. When using an external
> eventloop there is no call to adjust the window for a channel in the
> api?
>
> Stef
>
Hi Stef,

The window adjust messages are sent automatically by libssh after enough
data was read out of a channel. You async loop should not worry about
it, and just avoid consuming data (returning the maximum return value
after a channel_data callback) if the flow must be slowed down.

Aris


Reply via email to