This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] Have TCPXMLRPCServer inherit from SocketServer.Threading

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Have TCPXMLRPCServer inherit from SocketServer.ThreadingMixIn. This allows
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 28 Mar 2006 13:46:07 +0000
Delivery-date: Tue, 28 Mar 2006 13:47:50 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Have TCPXMLRPCServer inherit from SocketServer.ThreadingMixIn. This allows, Xen patchbot -unstable <=