WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Fix occasional 'hang' on xm save / xm migrate: xend was

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Fix occasional 'hang' on xm save / xm migrate: xend was failing to act upon
From: Xen patchbot -2.0-testing <patchbot-2.0-testing@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 18 Aug 2005 22:34:15 -0400
Delivery-date: Fri, 19 Aug 2005 02:34:51 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User smh22@xxxxxxxxxxxxxxxxxxxx
# Node ID 80a8b005b669fbfd08ece7b341e4e8fcfc933fea
# Parent  d1a7b01d85b627906560f45e08db749993b092cc
Fix occasional 'hang' on xm save / xm migrate: xend was failing to act upon 
multiple sexps from xfrd. 

Signed-off-by: Steven Hand <steven@xxxxxxxxxxxxx>

diff -r d1a7b01d85b6 -r 80a8b005b669 tools/python/xen/xend/XendMigrate.py
--- a/tools/python/xen/xend/XendMigrate.py      Wed Aug 17 21:49:24 2005
+++ b/tools/python/xen/xend/XendMigrate.py      Fri Aug 19 02:34:45 2005
@@ -54,7 +54,7 @@
 
     def dataReceived(self, data):
         self.parser.input(data)
-        if self.parser.ready():
+        while(self.parser.ready()): 
             val = self.parser.get_val()
             self.xinfo.dispatch(self, val)
         if self.parser.at_eof():
diff -r d1a7b01d85b6 -r 80a8b005b669 tools/python/xen/xend/server/SrvDaemon.py
--- a/tools/python/xen/xend/server/SrvDaemon.py Wed Aug 17 21:49:24 2005
+++ b/tools/python/xen/xend/server/SrvDaemon.py Fri Aug 19 02:34:45 2005
@@ -157,7 +157,7 @@
     def dataReceived(self, data):
         try:
             self.parser.input(data)
-            if self.parser.ready():
+            while(self.parser.ready()): 
                 val = self.parser.get_val()
                 res = self.dispatch(val)
                 self.send_result(res)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Fix occasional 'hang' on xm save / xm migrate: xend was failing to act upon, Xen patchbot -2 . 0-testing <=