-
Notifications
You must be signed in to change notification settings - Fork 18k
net: add support for collective TCP listeners #6890
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
Labels
Milestone
Comments
Some experiment: https://golang.org/cl/34580043/ |
Instead of chasing the kernel, and implementing various options the kernel adds, I think it's better to add a callback to Dial, that would let you use setsockopt on the socket fd/handle before using it. Something along the lines of Dialer{Callback: func (fd uintptr) { syscalls.Setsockopts(SO_BINDTOADDR, fd) }}.Dial(...) |
To whom It may concern: I have implemented similar feature as separate package https://github.com/kavu/go_reuseport. I'll be glad if you'll find it useful, and I may improve it further and submit it as a patch if you wish. |
I'll merge this issue into #9661. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: