RFR: 8280241: (aio) java/foreign/channels/TestAsyncSocketChannels fails in IPv6 only env with ExceptionInInitializerError
Daniel Fuchs
dfuchs at openjdk.java.net
Mon Jan 24 14:43:10 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.
LGTM. Could you please add `8280241` to the `@bug` list in `java/foreign/channels/TestAsyncSocketChannels.java` - and update the copyright years in the modified files if needed?
-------------
Marked as reviewed by dfuchs (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/7197
More information about the nio-dev
mailing list