net: add support for collective TCP listeners #6890
Closed
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: