RFR: 6914801: IPv6 unavailable if stdin is a socket [v2]

Daniel Jeliński djelinski at openjdk.org
Wed Jan 4 16:18:58 UTC 2023


> This patch reenables IPv6 stack when stdin is an IPv4 socket.
> 
> The code that blocked IPv6 was introduced in JDK-4673940 back when JDK could only operate with either IPv4 or IPv6 sockets, and was using `IPv6_available` to determine which socket type was in use. Now that JDK is able to operate with both IPv4 and IPv6 sockets at the same time, the check for IPv4 stdin is no longer relevant.
> 
> Included test passes with the changes applied, fails without them. Other tier1-3 tests also pass.

Daniel Jeliński has updated the pull request incrementally with one additional commit since the last revision:

  Additional logging

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/11638/files
  - new: https://git.openjdk.org/jdk/pull/11638/files/ba35ebc2..f8866cf4

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=11638&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=11638&range=00-01

  Stats: 4 lines in 1 file changed: 3 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/11638.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/11638/head:pull/11638

PR: https://git.openjdk.org/jdk/pull/11638


More information about the nio-dev mailing list