[Spice-devel] [RFCv5 08/47] server/red_channel: workaround for fast client disconnect bug (TODO - real fix)

Alon Levy alevy at redhat.com
Sun May 8 06:11:04 PDT 2011


---
 server/red_channel.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/server/red_channel.c b/server/red_channel.c
index 593e418..6f8d73e 100644
--- a/server/red_channel.c
+++ b/server/red_channel.c
@@ -581,6 +581,11 @@ void red_channel_client_push(RedChannelClient *rcc)
         red_channel_client_send(rcc);
     }
 
+    if (rcc->send_data.item && !rcc->send_data.blocked) {
+        rcc->send_data.blocked = TRUE;
+        red_printf("ERROR: an item waiting to be sent and not blocked");
+    }
+
     while ((pipe_item = red_channel_client_pipe_item_get(rcc))) {
         red_channel_client_send_item(rcc, pipe_item);
     }
-- 
1.7.5.1



More information about the Spice-devel mailing list