changeset 1517:23ac69c53779

Fixed standalone traceback on shutdown in case of interface being ''. Fixes MoinMoinBugs/StandAloneServerCrashesOnSendingDieRequest
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Fri, 01 Sep 2006 23:44:04 +0200
parents 6900a7906244
children 986be5c76da5
files MoinMoin/server/standalone.py docs/CHANGES
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/server/standalone.py	Fri Sep 01 20:40:54 2006 +0200
+++ b/MoinMoin/server/standalone.py	Fri Sep 01 23:44:04 2006 +0200
@@ -81,7 +81,10 @@
         self._abort = 1
         try:
             import httplib
-            req = httplib.HTTP('%s:%d' % self.server_address)
+            addr = self.server_address
+            if not addr[0]:
+                addr = ("localhost", addr[1])
+            req = httplib.HTTP('%s:%d' % addr)
             req.connect()
             req.putrequest('DIE', '/')
             req.endheaders()
--- a/docs/CHANGES	Fri Sep 01 20:40:54 2006 +0200
+++ b/docs/CHANGES	Fri Sep 01 23:44:04 2006 +0200
@@ -216,6 +216,7 @@
     * Fixed request.cfg corruption in the fckdialog code that could lead
       to e.g. stalled servers (thanks to David Linke)
     * Fixed typo in NewPage that lead to a NameError.
+    * Fixed standalone server failing to shutdown if interface == "".
 
   Other changes:
     * HINT: instead of "from MoinMoin.multiconfig import DefaultConfig" you