ia64/xen-unstable

changeset 9423:d52a93ee4624

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>
author emellor@leeni.uk.xensource.com
date Thu Mar 23 11:40:43 2006 +0100 (2006-03-23)
parents 8afbc2586121
children ffee7e07ad4b
files tools/python/xen/util/xmlrpclib2.py tools/python/xen/xend/server/XMLRPCServer.py
line diff
     1.1 --- a/tools/python/xen/util/xmlrpclib2.py	Thu Mar 23 11:30:33 2006 +0100
     1.2 +++ b/tools/python/xen/util/xmlrpclib2.py	Thu Mar 23 11:40:43 2006 +0100
     1.3 @@ -99,11 +99,11 @@ class UnixXMLRPCRequestHandler(SimpleXML
     1.4  class UnixXMLRPCServer(TCPXMLRPCServer):
     1.5      address_family = socket.AF_UNIX
     1.6  
     1.7 -    def __init__(self, addr, requestHandler=UnixXMLRPCRequestHandler,
     1.8 -                 logRequests=1):
     1.9 +    def __init__(self, addr, logRequests):
    1.10          if self.allow_reuse_address:
    1.11              try:
    1.12                  os.unlink(addr)
    1.13              except OSError, exc:
    1.14                  pass
    1.15 -        TCPXMLRPCServer.__init__(self, addr, requestHandler, logRequests)
    1.16 +        TCPXMLRPCServer.__init__(self, addr, UnixXMLRPCRequestHandler,
    1.17 +                                 logRequests)
     2.1 --- a/tools/python/xen/xend/server/XMLRPCServer.py	Thu Mar 23 11:30:33 2006 +0100
     2.2 +++ b/tools/python/xen/xend/server/XMLRPCServer.py	Thu Mar 23 11:40:43 2006 +0100
     2.3 @@ -13,6 +13,7 @@
     2.4  # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     2.5  #============================================================================
     2.6  # Copyright (C) 2006 Anthony Liguori <aliguori@us.ibm.com>
     2.7 +# Copyright (C) 2006 XenSource Ltd
     2.8  #============================================================================
     2.9  
    2.10  from xen.xend import XendDomain, XendDomainInfo, XendNode, \
    2.11 @@ -69,9 +70,9 @@ class XMLRPCServer:
    2.12          if self.use_tcp:
    2.13              # bind to something fixed for now as we may eliminate
    2.14              # tcp support completely.
    2.15 -            self.server = TCPXMLRPCServer(("localhost", 8005))
    2.16 +            self.server = TCPXMLRPCServer(("localhost", 8005, False))
    2.17          else:
    2.18 -            self.server = UnixXMLRPCServer(XML_RPC_SOCKET)
    2.19 +            self.server = UnixXMLRPCServer(XML_RPC_SOCKET, False)
    2.20  
    2.21          # Functions in XendDomainInfo
    2.22          for name in methods: