]> git.michaelhowe.org Git - packages/p/paho-mqtt.git/commitdiff
[439277] Fix Client constructor for the case where "localhost" is unresolvable.
authorRoger A. Light <roger@atchoo.org>
Mon, 28 Jul 2014 13:21:04 +0000 (14:21 +0100)
committerRoger A. Light <roger@atchoo.org>
Mon, 28 Jul 2014 13:21:04 +0000 (14:21 +0100)
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=439277
Change-Id: I05d268e4fbaba56116ea35bc8b2dc2c7f31ca2a9

ChangeLog.txt
src/paho/mqtt/client.py

index 5feae68e0252a1da5240b9a1dddcfb0351bdeabb..32e5704e36e6075e405a4db22c4d79eed108468d 100644 (file)
@@ -2,6 +2,8 @@ v1.0.2
 ======
 
 - Fix "protocol" not being used in publish.single()
+- Fix Client constructor for the case where "localhost" is unresolvable.
+  Closes #439277.
 
 v1.0.1
 ======
index 77d939a923213c4c5831bca890839c0950d430f4..93308d2e0d3e5acb12921fb7f79b1c1a3ed1bc34 100755 (executable)
@@ -252,7 +252,7 @@ def _socketpair_compat():
     """TCP/IP socketpair including Windows support"""
     listensock = socket.socket(socket.AF_INET, socket.SOCK_STREAM, socket.IPPROTO_IP)
     listensock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
-    listensock.bind(("localhost", 0))
+    listensock.bind(("127.0.0.1", 0))
     listensock.listen(1)
 
     iface, port = listensock.getsockname()