WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Removed unused handler parameter from UnixXMLRPCServer i

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Removed unused handler parameter from UnixXMLRPCServer interface -- just pass
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 23 Mar 2006 13:48:09 +0000
Delivery-date: Thu, 23 Mar 2006 13:49:53 +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 d52a93ee4624b0fae694353251622af2eb51dabc
# Parent  8afbc25861219578fae30cc2a9bd60bf2ab26349
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@xxxxxxxxxxxxx>

diff -r 8afbc2586121 -r d52a93ee4624 tools/python/xen/util/xmlrpclib2.py
--- a/tools/python/xen/util/xmlrpclib2.py       Thu Mar 23 10:30:33 2006
+++ b/tools/python/xen/util/xmlrpclib2.py       Thu Mar 23 10:40:43 2006
@@ -99,11 +99,11 @@
 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)
diff -r 8afbc2586121 -r d52a93ee4624 
tools/python/xen/xend/server/XMLRPCServer.py
--- a/tools/python/xen/xend/server/XMLRPCServer.py      Thu Mar 23 10:30:33 2006
+++ b/tools/python/xen/xend/server/XMLRPCServer.py      Thu Mar 23 10:40:43 2006
@@ -13,6 +13,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 #============================================================================
 # Copyright (C) 2006 Anthony Liguori <aliguori@xxxxxxxxxx>
+# Copyright (C) 2006 XenSource Ltd
 #============================================================================
 
 from xen.xend import XendDomain, XendDomainInfo, XendNode, \
@@ -69,9 +70,9 @@
         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:

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Removed unused handler parameter from UnixXMLRPCServer interface -- just pass, Xen patchbot -unstable <=