Removed unused handler parameter from UnixXMLRPCServer interface -- just pass

UnixXMLRPCRequestHandler through to TCPXMLRPCServer.

Do not log requests -- this fills up xend-debug.log uselessly.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
emellor@leeni.uk.xensource.com committed 2006-03-23 11:40:43 +01:00
1 parent f9617f8209
commit 9fffa2e25e
2 files changed
+6 -5

No files matched your search

+3 -3
View File
@@ -99,11 +99,11 @@ class UnixXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
class UnixXMLRPCServer(TCPXMLRPCServer):
address_family = socket.AF_UNIX
def __init__(self, addr, requestHandler=UnixXMLRPCRequestHandler,
logRequests=1):
def __init__(self, addr, logRequests):
if self.allow_reuse_address:
try:
os.unlink(addr)
except OSError, exc:
pass
TCPXMLRPCServer.__init__(self, addr, requestHandler, logRequests)
TCPXMLRPCServer.__init__(self, addr, UnixXMLRPCRequestHandler,
logRequests)
+3 -2
View File
@@ -13,6 +13,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#============================================================================
# Copyright (C) 2006 Anthony Liguori <aliguori@us.ibm.com>
# Copyright (C) 2006 XenSource Ltd
#============================================================================
from xen.xend import XendDomain, XendDomainInfo, XendNode, \
@@ -69,9 +70,9 @@ class XMLRPCServer:
if self.use_tcp:
# bind to something fixed for now as we may eliminate
# tcp support completely.
self.server = TCPXMLRPCServer(("localhost", 8005))
self.server = TCPXMLRPCServer(("localhost", 8005, False))
else:
self.server = UnixXMLRPCServer(XML_RPC_SOCKET)
self.server = UnixXMLRPCServer(XML_RPC_SOCKET, False)
# Functions in XendDomainInfo
for name in methods:
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.