On Fri, 04 Feb 2022 at 15:38:12 +0100, Jakub Wilk wrote: > * Julien Puydt <julien.pu...@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.
See also: https://bugs.debian.org/952740, which I reported as a result of the equivalent bug being reported for dbus. smcv