mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Better diagnosis of the failure when Xend crashes. Thanks to Hollis Blanchard
for diagnosis. Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
a3a905683d
commit
03b3d1627f
3 files changed
+16
-1
No files matched your search
@@ -138,6 +138,11 @@ class TCPXMLRPCServer(SocketServer.ThreadingMixIn, SimpleXMLRPCServer):
|
||||
|
||||
def _marshaled_dispatch(self, data, dispatch_method = None):
|
||||
params, method = xmlrpclib.loads(data)
|
||||
if False:
|
||||
# Enable this block of code to exit immediately without sending
|
||||
# a response. This allows you to test client-side crash handling.
|
||||
import sys
|
||||
sys.exit(1)
|
||||
try:
|
||||
if dispatch_method is not None:
|
||||
response = dispatch_method(method, params)
|
||||
|
||||