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

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



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.