-
Notifications
You must be signed in to change notification settings - Fork 18k
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: OS X allows duplicate listen in single process? #2581
Labels
Milestone
Comments
Owner changed to builder@golang.org. |
Watching the build breakages between 669536c0ba8c and the fix in 5558056, it seems that OS X just allows duplicate listens, even within the same process? Should verify that first, though, before closing this. Owner changed to @bradfitz. Status changed to Started. |
I checked below platforms w/ attached test program. - linux-3.0.0 - darwin-11.3.0 (freebsd-based network stack) - freebsd-8.2 - openbsd-5.1 Allow re-listen (actually bind) in single, multiple processes: - darwin, freebsd and openbsd - if multiple listeners exist: client data is delivered to last listener on both darwin, freebsd (last-come first-served) client data is delivered to first listener on openbsd (first-come first-served) Not allow re-listen (actually bind) in single, multiple processes: - linux - because linux's bind is designed to achieve service port-uniqueness Attachments:
|
Please take a look at http://golang.org/cl/5677086/. In conclusion, a) there are some bugs in package net that cause allowing wildcard address double listen on BSD variants, b) after fixing the bug even in the case of dual IP stack we can see a bit consistent listeners behavior now. |
This issue was closed by revision b5dc872. |
This issue was closed.
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: