[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

Michael Felt report at bugs.python.org
Fri May 24 17:25:04 EDT 2019


Michael Felt <aixtools at felt.demon.nl> added the comment:

On 24/05/2019 19:59, Erwan Le Pape wrote:
> python3 -c 'import socket; print(socket.getaddrinfo("fe80::1%1", 80))'`

p.s. I used an actual address:

buildbot at x064:[/home/buildbot/aixtools-master]netstat -ni
Name  Mtu   Network     Address            Ipkts Ierrs    Opkts Oerrs  Coll
en0   1500  link#2      0.21.5e.a3.c7.44   191897     0   171570     0     0
en0   1500  192.168.129 192.168.129.64     191897     0   171570     0     0
en0   1500  fe80::221:5eff:fea3:c744       191897     0   171570     0     0
en1   1500  link#3      fa.d1.81.81.ac.5   147474     0    80440     0     0
en1   1500  192.168.2   192.168.2.64       147474     0    80440     0     0
en1   1500  fe80::f8d1:81ff:fe81:ac05%2    147474     0    80440     0     0
lo0   16896 link#1                         184523     0   184521     0     0
lo0   16896 127         127.0.0.1          184523     0   184521     0     0
lo0   16896 ::1%1                          184523     0   184521     0     0
buildbot at x064:[/home/buildbot/aixtools-master]./python -c 'import
socket; print(socket.getaddrinfo("fe80::f8d1:81ff:fe81:ac05%2", 80))'
[(<AddressFamily.AF_INET6: 24>, <SocketKind.SOCK_DGRAM: 2>, 17, '',
('fe80::f8d1:81ff:fe81:ac05', 80, 0, 0))]

----------

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


More information about the Python-bugs-list mailing list