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

Better dual-stack support #2902

Closed
jaymzh opened this issue Mar 21, 2020 · 3 comments
Closed

Better dual-stack support #2902

jaymzh opened this issue Mar 21, 2020 · 3 comments
Labels
feature request *Deprecated Label* Use enhancement label in general ipv6

Comments

@jaymzh
Copy link

jaymzh commented Mar 21, 2020

Is your feature request related to a problem? Please describe.

It's not possible to listen on both v4 and v6 of localhost. Unlike :: which is a somewhat-magical setting that enables both families in Linux (and all addresses), for anything else (like localhost), there's no good solution.

You can set bind to 127.0.0.1 or to ::1, but you can't set it to both addresses, or to just localhost.

Describe the solution you'd like

  • When specifying a hostname like localhost, all relevant addresses are listend/bound. For example:
irb(main):016:0> Addrinfo.getaddrinfo('localhost', 5140).select { |x| x.socktype == Socket::SOCK_DGRAM }           
=> [#<Addrinfo: [::1]:5140 UDP (localhost)>, #<Addrinfo: 127.0.0.1:5140 UDP (localhost)>]

Describe alternatives you've considered

An alternative might be multiple bind statements, but... that's suboptimal.

@ganmacs ganmacs added the feature request *Deprecated Label* Use enhancement label in general label Mar 23, 2020
@github-actions
Copy link

This issue has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days

@github-actions github-actions bot added the stale label Dec 18, 2020
@jaymzh
Copy link
Author

jaymzh commented Dec 19, 2020

@ganmacs can you remove the stale label please, this is still broken - fluent still can't handle dual-stack environments.

@github-actions github-actions bot removed the stale label Dec 20, 2020
@ashie
Copy link
Member

ashie commented May 28, 2021

It's a duplicated issue of #3001, and #3001 has more information including a workaround solution.
Should be merged to #3001.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request *Deprecated Label* Use enhancement label in general ipv6
Projects
None yet
Development

No branches or pull requests

3 participants