Skip to content

Commit a52ddb7

Browse files
committed
Dont drop remaining gai entries on successful connect
1 parent f747738 commit a52ddb7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

kafka/conn.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,6 @@ def connect(self):
303303
ret = None
304304
try:
305305
ret = self._sock.connect_ex((self.host, self.port))
306-
# if we got here through a host lookup,
307-
# we've found a (host, port, af) tuple that works
308-
# and we can stop iterating through the getaddrinfo list
309-
self._gai = None
310306
except socket.error as err:
311307
ret = err.errno
312308

0 commit comments

Comments
 (0)