Skip to content

Conversation

@pyr
Copy link

@pyr pyr commented Feb 27, 2025

Torch relies on explicitly setting the address family to AF_INET6 by default when using getaddrinfo. This results in ENONAME on systems which do not have IPv6 available, as is the case within EKS in our setup.

The correct behavior should be to set the family to AF_UNSPEC, and if necessary to rely on gai.conf to set precedence to control which address is returned first. This will be addressed separately by raising a PR upstream.

In the interval, our fork should default to IPv4 to allow host lookups to work as intended.

Fixes #ISSUE_NUMBER

Torch relies on explicitly setting the address family to AF_INET6 by
default when using `getaddrinfo`. This results in ENONAME on systems
which do not have IPv6 available, as is the case within EKS in our setup.

The correct behavior should be to set the family to AF_UNSPEC, and if
necessary to rely on `gai.conf` to set precedence to control which
address is returned first. This will be addressed separately by raising
a PR upstream.

In the interval, our fork should default to IPv4 to allow host lookups
to work as intended.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants