Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

socket: set ipv6 preference to false #19

Open
wants to merge 1 commit into
base: poolside-main
Choose a base branch
from

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.

1 participant