Integrated: 8280241: (aio) AsynchronousSocketChannel init fails in IPv6 only Windows env

Daniel Jeliński djelinski at openjdk.java.net
Tue Jan 25 11:20:38 UTC 2022


On Mon, 24 Jan 2022 14:27:51 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.

This pull request has now been integrated.

Changeset: 36fbec78
Author:    Daniel Jeliński <djelinski at openjdk.org>
Committer: Daniel Fuchs <dfuchs at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/36fbec78be837fe1defb72f39c6e3f2b5135fddf
Stats:     10 lines in 2 files changed: 8 ins; 0 del; 2 mod

8280241: (aio) AsynchronousSocketChannel init fails in IPv6 only Windows env

Reviewed-by: dfuchs, alanb

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

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


More information about the nio-dev mailing list