[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] Revert "Ensure async packets never get marked for sync replies"



This partially reverts commit 984840a2c292402926ad100aeea33f8859ff31a9.

Without this patch, client don't finish a stream which makes any
API involving virStream block indefinitely.
---
 src/rpc/virnetclient.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/rpc/virnetclient.c b/src/rpc/virnetclient.c
index 055361d..50f46ea 100644
--- a/src/rpc/virnetclient.c
+++ b/src/rpc/virnetclient.c
@@ -627,6 +627,11 @@ static int virNetClientCallDispatchStream(virNetClientPtr client)
     case VIR_NET_CONTINUE: {
         if (virNetClientStreamQueuePacket(st, &client->msg) < 0)
             return -1;
+
+        if (thecall && thecall->expectReply) {
+            VIR_DEBUG("Got sync data packet completion");
+            thecall->mode = VIR_NET_CLIENT_MODE_COMPLETE;
+        }
         return 0;
     }
 
-- 
1.7.3.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]