[issue35302] create_connection with local_addr misses valid socket bindings

twisteroid ambassador report at bugs.python.org
Wed Dec 19 08:18:49 EST 2018


twisteroid ambassador <twisteroid.ambassador at gmail.com> added the comment:

IMO macOS is at fault here, for even allowing an IPv6 socket to bind to an IPv4 address. ;-)

I have given some thought about this issue when writing my happy eyeballs library. My current solution is closest to Neil's first suggestion, i.e. each pair of remote addrinfo and local addrinfo is tried in a connection attempt.

----------
nosy: +twisteroid ambassador

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35302>
_______________________________________


More information about the Python-bugs-list mailing list