Re: [Spice-devel] [PATCH spice-server 2/4] red-channel-client: Prevent too tight loop waiting for ACKs

2017-09-18 Thread Christophe Fergeau
On Mon, Sep 18, 2017 at 11:28:28AM +0100, Frediano Ziglio wrote: > RedChannelClient has a "handle-acks" feature. > If this feature is enabled after the configured number of messages > it waits for an ACK. > If is waiting for an ACK it stops sending messages. > However the write notification was

[Spice-devel] [PATCH spice-server 2/4] red-channel-client: Prevent too tight loop waiting for ACKs

2017-09-18 Thread Frediano Ziglio
RedChannelClient has a "handle-acks" feature. If this feature is enabled after the configured number of messages it waits for an ACK. If is waiting for an ACK it stops sending messages. However the write notification was not disabled causing the loop event to always trigger as the socket in this