I got an RC bug on python-anyio, because its testsuite fails when run
on an IPv6-only host [1].
* Julien Puydt <julien.puydt@gmail.com>, 2022-02-04, 12:34:
I got an RC bug on python-anyio, because its testsuite fails when run on
an IPv6-only host [1].
I'm pretty sure "IPv6-only" means "the only non-loopback addresses this host has are IPv6", rather than "it doesn't have any IPv4, not even 127.0.0.1."
This project uses AI_ADDRCONFIG: "IPv4 addresses are returned […] if the local system has at least one IPv4 address configured, […] The loopback address is not considered for this case as valid as a configured address."
Somewhat surprisingly, this means that getaddrinfo("127.0.0.1", ...) can
fail even when the 127.0.0.1 address exists.
unshare -c -r --keep-caps
$ python3 -c 'from socket import *; getaddrinfo("127.0.0.1", port=1, flags=AI_ADDRCONFIG)'
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 20:02:33 |
Calls: | 6,707 |
Calls today: | 1 |
Files: | 12,239 |
Messages: | 5,351,628 |