Skip to content

Cannot connect to IPv6 with non-zero scope-id #1018

Closed
@dpkp

Description

@dpkp

Following on debug logs posted to #868 , it looks like we are not handling ipv6 sockaddr tuples correctly. At

self.host, self.port = sockaddr[:2]
we extract the host / port from the sockaddr. This is fine for ipv4 where sockaddr is just a 2-tuple . But in IPv6 sockaddr is a 4-tuple, including flow-info and scope-id. If those are non-zero, we will not be able to connect correctly when we call connect_ex((host, port)).

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions