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>
This commit is contained in:
emellor@leeni.uk.xensource.com committed 2006-03-28 11:25:22 +01:00
1 parent 70f46c3045
commit d4a55b4a44
1 file changed
+2 -1
+2 -1
View File
@@ -24,6 +24,7 @@ from httplib import HTTPConnection, HTTP
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 @@ class ServerProxy(xmlrpclib.ServerProxy):
# 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):
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.