[Spice-devel] [PATCH spice 1/3] server: always call read_from_vdi_port() in a while loop

Gerd Hoffmann kraxel at redhat.com
Fri Oct 15 01:33:17 PDT 2010


On 10/15/10 09:45, Hans de Goede wrote:
> read_from_vdi_port() MUST always be called in a while loop until it returns 0.
>
> This is needed because it can cause new data available events and its
> recursion protection causes those to get lost. Calling it until it returns 0
> ensures that all data has been consumed.
>

It's actually about flow control not recursion protection. The patch is 
correct nevertheless.

Acked-by: Gerd Hoffmann <kraxel at redhat.com>

cheers,
   Gerd



More information about the Spice-devel mailing list