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

net linux preferIPv4 is not quite right #679

Closed
rsc opened this issue Mar 19, 2010 · 7 comments
Closed

net linux preferIPv4 is not quite right #679

rsc opened this issue Mar 19, 2010 · 7 comments

Comments

@rsc
Copy link
Contributor

rsc commented Mar 19, 2010

on machines with the broken settings
net.ipv6.bindv6only = 1
we need to set preferIPv4 to false.
@gopherbot
Copy link

Comment 1 by bortzmeyer:

Regarding the question of "is net.ipv6.bindv6only=1 broken?", Java people have a
similar issue: 
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6342561

@gopherbot
Copy link

Comment 2 by bortzmeyer:

Rather than arguing if net.ipv6.bindv6only=1 is broken or not, a better solution may
be to use the socket option IPV6_V6ONLY (RFC 3493, section 5.3).
This option allows a per-socket tuning of the "V6only binding". Go could set it to 0
systematically or, better, export it for applications to use.
Apparently, with today's tip, this option is imported
(src/pkg/syscall/zerrors_linux_386.go) but I'm not sure it can be used by
applications. (syscall.SetsockoptInt ? Not very clean)

@rsc
Copy link
Contributor Author

rsc commented Apr 8, 2010

Comment 3:

I'm going to fix it by using that option always.
That's why it's there.
Just haven't cleaned up and submitted the code yet.

@rsc
Copy link
Contributor Author

rsc commented Apr 28, 2010

Comment 4:

Issue #685 has been merged into this issue.

@adg
Copy link
Contributor

adg commented Jun 29, 2010

Comment 5:

Issue #890 has been merged into this issue.

@gopherbot
Copy link

Comment 6 by joerg.sonnenberger:

Attached is a patch that works on NetBSD.

Attachments:

  1. v6only.diff (3209 bytes)

@rsc
Copy link
Contributor Author

rsc commented Sep 24, 2010

Comment 7:

This issue was closed by revision d472665.

Status changed to Fixed.

@rsc rsc added the fixed label Sep 24, 2010
@rsc rsc self-assigned this Sep 24, 2010
@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc removed their assignment Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants