Swift MemcacheConnPool does not support IPv6
Bug #1526570 reported by
Timur Alperovich
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Undecided
|
Timur Alperovich |
Bug Description
In the MemcacheConnPool there is an implicit assumption that the configured IPs are all v4. Specifically, the create() method is buggy for v6:
def create(self):
if ':' in self.server:
host, port = self.server.
else:
host = self.server
port = DEFAULT_
sock = socket.
sock.
with Timeout(
return (sock.makefile(), sock)
The method should be rewritten to reason correctly about IPv6 addresses.
description: | updated |
To post a comment you must log in.
Proposed a patch to fix this: https:/ /review. openstack. org/#/c/ 258704/