[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: integration with libevent
[Thread Prev] | [Thread Next]
- Subject: Re: integration with libevent
- From: Aris Adamantiadis <aris@xxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Sun, 20 Sep 2015 18:11:45 +0200
- To: libssh@xxxxxxxxxx
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
Re: integration with libevent | Stef Bon <stefbon@xxxxxxxxx> |
integration with libevent | Nicolas Viennot <nicolas@xxxxxxxxxxx> |
Re: integration with libevent | Aris Adamantiadis <aris@xxxxxxxxxxxx> |
Re: integration with libevent | Stef Bon <stefbon@xxxxxxxxx> |