]> git.michaelhowe.org Git - packages/p/paho-mqtt.git/commitdiff
Further fix for Client constructor for the case where "localhost" is unresolvable. master
authorRoger A. Light <roger@atchoo.org>
Sun, 26 Apr 2015 20:53:03 +0000 (21:53 +0100)
committerRoger A. Light <roger@atchoo.org>
Sun, 26 Apr 2015 20:53:03 +0000 (21:53 +0100)
Change-Id: I61e27ac2496b731afa2b70996aee816c030b3fbf

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

index ac8deb0b208774364c45db8b2b41a95cd45cff43..dde81e8f0c43cdf86bbaf0079bac8b83f8a06f51 100644 (file)
@@ -1,3 +1,10 @@
+v1.1.1 - 2015-xx-xx
+===================
+
+- Further fix for Client constructor for the case where "localhost" is
+  unresolvable.
+
+
 v1.1 - 2015-01-30
 =================
 
index ec02cbd1acea62f8ba49760056e5e274587876b0..9dfb0d8d70f792b387f183488d910f0894d0d4aa 100755 (executable)
@@ -264,7 +264,7 @@ def _socketpair_compat():
     sock1 = socket.socket(socket.AF_INET, socket.SOCK_STREAM, socket.IPPROTO_IP)
     sock1.setblocking(0)
     try:
-        sock1.connect(("localhost", port))
+        sock1.connect(("127.0.0.1", port))
     except socket.error as err:
         if err.errno != errno.EINPROGRESS and err.errno != errno.EWOULDBLOCK and err.errno != EAGAIN:
             raise