-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Inconsistencies with IPv6 endpoint specification across platforms #7728
Comments
So the objective of this issue report is to see if it is possible for either:
|
@gireeshpunathil So basically listening at unspecified ( So node could either convert |
@gibfahn Not quite. Connecting to EDIT: 'Nonsensical' is perhaps a poor choice of words. One way to think of it is as asking for a connection to any local address that is accepting connections on the selected port. That is meaningful and sensible but alas, not very portable. |
@bnoordhuis Thanks a lot, I knew I was getting muddled somewhere. 😄 |
@gireeshpunathil are we any close to the right answer on this ? |
@mhdawson - this can be deemed resolved when two of the PRs: |
@gireeshpunathil those PRs have both landed, so I think this can be closed... |
I have been debuging some of the test failures in AIX and Windows with respect to client-server connectivity on ipv6 addresses. Here is the summary:
Code:
Linux and Mac:
Bottom line of Linux and Mac story is that the unspecified and loopback addresses are interchangeably used, and every combination works.
Windows
Bottom line of Windows story is that the unspecified and loopback addresses are strictly disjoint.
AIX
Bottom line of AIX story is thar socket listening at unspecified (any address) is able to get connected from a client specifying loopback address, but vice versa is false.
This behavior is in alignment with the IPv4 behavior with 0.0.0.0 and 127.0.0.1 respectively, in these platforms.
The impact of this bejavior difference is that few test cases fail in some platforms (gc/test-net-timeout.js in windows #7291 and parallel/test-cluster-disconnect-handles in AIX #7563 etc.) but these may be just indications of future larger problems in real applications.
Among all these deviations and in the absence of a clear specification about the connectivity, my inference is that the AIX behavior seem correct, but would like to hear from others.
The text was updated successfully, but these errors were encountered: