syscall: define SO_REUSEPORT #26771
Labels
FeatureRequest
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
What version of Go are you using (
go version
)?1.11beta2
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?What did you do?
Using https://gist.github.com/chantra/7783d1fe5e6e859c066aa7dcdcac5e87
On my environment:
It works on the
nacl
platform: https://play.golang.org/p/BxiHNMO-4Z9What did you expect to see?
I would expect
syscall.SO_REUSEPORT
to be defined. Even more so that with the apparition of the net.Listenconfig interface in go1.11, it will now be possible to set SO_REUSEPORT on sockets.The work around in chantra/miekg-dns@e80149d is to hardcode the value for Linux amd64 platform (e.g 0xF)
What did you see instead?
The text was updated successfully, but these errors were encountered: