Re: [Spice-devel] [PATCH spice-server v5 1/8] stream-device: Avoid device to get stuck if multiple messages are batched

2018-02-16 Thread Jonathon Jongsma
On Tue, 2018-02-13 at 15:54 +, Frediano Ziglio wrote: > If messages are sent together by the agent the device is reading > only part of the data. This cause Qemu to not poll for new data and > stream_device_read_msg_from_dev won't be called again. > This can cause a stall. To avoid this

[Spice-devel] [PATCH spice-server v5 1/8] stream-device: Avoid device to get stuck if multiple messages are batched

2018-02-13 Thread Frediano Ziglio
If messages are sent together by the agent the device is reading only part of the data. This cause Qemu to not poll for new data and stream_device_read_msg_from_dev won't be called again. This can cause a stall. To avoid this continue handling data after a full message was processed.