ia64/xen-unstable

changeset 6267:e355ae38c83b

Proleptic xend bug fix for multi-sxp messages; stricly more robust than before.

Signed-off-by: Steven Hand <steven@xensource.com>
author smh22@firebug.cl.cam.ac.uk
date Fri Aug 19 02:41:16 2005 +0000 (2005-08-19)
parents dfbeb7da829f
children 1895942150a5 7570087c2552
files tools/python/xen/xend/server/event.py tools/python/xen/xend/server/relocate.py
line diff
     1.1 --- a/tools/python/xen/xend/server/event.py	Thu Aug 18 19:51:46 2005 +0000
     1.2 +++ b/tools/python/xen/xend/server/event.py	Fri Aug 19 02:41:16 2005 +0000
     1.3 @@ -50,7 +50,7 @@ class EventProtocol(protocol.Protocol):
     1.4      def dataReceived(self, data):
     1.5          try:
     1.6              self.parser.input(data)
     1.7 -            if self.parser.ready():
     1.8 +            while(self.parser.ready()):
     1.9                  val = self.parser.get_val()
    1.10                  res = self.dispatch(val)
    1.11                  self.send_result(res)
     2.1 --- a/tools/python/xen/xend/server/relocate.py	Thu Aug 18 19:51:46 2005 +0000
     2.2 +++ b/tools/python/xen/xend/server/relocate.py	Fri Aug 19 02:41:16 2005 +0000
     2.3 @@ -42,7 +42,7 @@ class RelocationProtocol(protocol.Protoc
     2.4      def dataReceived(self, data):
     2.5          try:
     2.6              self.parser.input(data)
     2.7 -            if self.parser.ready():
     2.8 +            while(self.parser.ready()):
     2.9                  val = self.parser.get_val()
    2.10                  res = self.dispatch(val)
    2.11                  self.send_result(res)