RFR: 8280241: (aio) AsynchronousSocketChannel init fails in IPv6 only Windows env [v2]

Daniel Fuchs dfuchs at openjdk.java.net
Tue Jan 25 10:39:37 UTC 2022


On Tue, 25 Jan 2022 10:22:12 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:

>> When IPv4 is disabled on a Windows system, `socket(AF_INET,...)` calls fail with `WSAEAFNOSUPPORT`.
>> The socket is only needed to retrieve the address of ConnectEx method, and an IPv6 socket serves that purpose equally well.
>> 
>> The patch was verified on a Windows 10 machine with IPv4 disabled using `netsh interface ipv4 uninstall`. Some tests are still failing, but `TestAsyncSocketChannels` is passing now.
>
> Daniel Jeliński has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Update copyright dates

LGTM. The test will only verify your changes if IPv4 is disabled - and I see Alan has marked the issue as noreg-hard so I'm OK with not updating the `@bug` list in the test. I can sponsor the change if you integrate it.

-------------

Marked as reviewed by dfuchs (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/7197


More information about the nio-dev mailing list