Author ocean-city
Recipients jnoller, ocean-city, roudkerk
Date 2008-08-07.14:42:03
SpamBayes Score 0.153238
Marked as misclassified No
Message-id <1218120124.02.0.0405532170513.issue3270@psf.upfronthosting.co.za>
In-reply-to
Content
Hello. I also experienced test_multiprocessing hang on win2k and I
workarounded this by this adhok patch.

Index: Lib/multiprocessing/connection.py
===================================================================
--- Lib/multiprocessing/connection.py	(revision 65551)
+++ Lib/multiprocessing/connection.py	(working copy)
@@ -217,7 +217,12 @@
         self._socket.listen(backlog)
         address = self._socket.getsockname()
         if type(address) is tuple:
-            address = (socket.getfqdn(address[0]),) + address[1:]
+            def getfqdn(s): # ???
+                if s == '127.0.0.1':
+                    return 'localhost'
+                else:
+                    return socket.getfqdn(s)
+            address = (getfqdn(address[0]),) + address[1:]
         self._address = address
         self._family = family
         self._last_accepted = None

I'm not familiar to socket, so probably this info is useless. ;-)
History
Date User Action Args
2008-08-07 14:42:04ocean-citysetrecipients: + ocean-city, roudkerk, jnoller
2008-08-07 14:42:04ocean-citysetmessageid: <1218120124.02.0.0405532170513.issue3270@psf.upfronthosting.co.za>
2008-08-07 14:42:03ocean-citylinkissue3270 messages
2008-08-07 14:42:03ocean-citycreate