[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Have TCPXMLRPCServer inherit from SocketServer.ThreadingMixIn. This allows
# HG changeset patch # User emellor@xxxxxxxxxxxxxxxxxxxxxx # Node ID c0865290c0716f125c04e4903f08b39d74b6fc4a # Parent 8286738ab7f9a9bbc850050832fdfff82e6776ff Have TCPXMLRPCServer inherit from SocketServer.ThreadingMixIn. This allows Xend to handle more than one request simultaneously once again. Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx> diff -r 8286738ab7f9 -r c0865290c071 tools/python/xen/util/xmlrpclib2.py --- a/tools/python/xen/util/xmlrpclib2.py Fri Mar 24 09:52:10 2006 +++ b/tools/python/xen/util/xmlrpclib2.py Tue Mar 28 10:25:22 2006 @@ -24,6 +24,7 @@ from xmlrpclib import Transport from SimpleXMLRPCServer import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler import xmlrpclib, socket, os, traceback +import SocketServer # A new ServerProxy that also supports httpu urls. An http URL comes in the # form: @@ -62,7 +63,7 @@ # true, and has an improved marshaller that serializes unknown exceptions # with full traceback information. -class TCPXMLRPCServer(SimpleXMLRPCServer): +class TCPXMLRPCServer(SocketServer.ThreadingMixIn, SimpleXMLRPCServer): allow_reuse_address = True def _marshaled_dispatch(self, data, dispatch_method = None): _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |