ia64/xen-unstable

changeset 9465:c0865290c071

Have TCPXMLRPCServer inherit from SocketServer.ThreadingMixIn. This allows
Xend to handle more than one request simultaneously once again.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Tue Mar 28 11:25:22 2006 +0100 (2006-03-28)
parents 8286738ab7f9
children af1ff22a5633
files tools/python/xen/util/xmlrpclib2.py
line diff
     1.1 --- a/tools/python/xen/util/xmlrpclib2.py	Fri Mar 24 10:52:10 2006 +0100
     1.2 +++ b/tools/python/xen/util/xmlrpclib2.py	Tue Mar 28 11:25:22 2006 +0100
     1.3 @@ -24,6 +24,7 @@ from httplib import HTTPConnection, HTTP
     1.4  from xmlrpclib import Transport
     1.5  from SimpleXMLRPCServer import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler
     1.6  import xmlrpclib, socket, os, traceback
     1.7 +import SocketServer
     1.8  
     1.9  # A new ServerProxy that also supports httpu urls.  An http URL comes in the
    1.10  # form:
    1.11 @@ -62,7 +63,7 @@ class ServerProxy(xmlrpclib.ServerProxy)
    1.12  # true, and has an improved marshaller that serializes unknown exceptions
    1.13  # with full traceback information.
    1.14  
    1.15 -class TCPXMLRPCServer(SimpleXMLRPCServer):
    1.16 +class TCPXMLRPCServer(SocketServer.ThreadingMixIn, SimpleXMLRPCServer):
    1.17      allow_reuse_address = True
    1.18  
    1.19      def _marshaled_dispatch(self, data, dispatch_method = None):