Support IPv6 hosts and networks
This commit is contained in:
@@ -149,7 +149,5 @@ class KafkaConnection(local):
|
|||||||
Re-initialize the socket connection
|
Re-initialize the socket connection
|
||||||
"""
|
"""
|
||||||
self.close()
|
self.close()
|
||||||
self._sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
self._sock = socket.create_connection((self.host, self.port), self.timeout)
|
||||||
self._sock.settimeout(self.timeout)
|
|
||||||
self._sock.connect((self.host, self.port))
|
|
||||||
self._dirty = False
|
self._dirty = False
|
||||||
|
Reference in New Issue
Block a user