mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Proleptic xend bug fix for multi-sxp messages; stricly more robust than before.
Signed-off-by: Steven Hand <steven@xensource.com>
This commit is contained in:
1 parent
e9eaa6bafb
commit
d41f35ae27
2 files changed
+2
-2
No files matched your search
@@ -50,7 +50,7 @@ class EventProtocol(protocol.Protocol):
|
||||
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)
|
||||
|
||||
@@ -42,7 +42,7 @@ class RelocationProtocol(protocol.Protocol):
|
||||
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)
|
||||
|
||||