RFR: 8308807: [AIX] MulticastSocket and jdp test fails due to joinGroup

Andrey Turbanov aturbanov at openjdk.org
Sun Aug 6 13:50:41 UTC 2023


On Thu, 25 May 2023 07:14:19 GMT, Deepa Kumari <duke at openjdk.org> wrote:

> DatagramSocket delegates to an inner DatagramSocket object. Irrespective of whether datagramSocket is IPv4 or IPv6, we create an IPv6 datagramChannel as its's delegate. So, This can cause problems with operations like joinGroup. 
> 
> On AIX, IPv6 datagramSocket can not join an IPv4 multicast group.
> 
> These failures can be fixed by making sure that the delegate created for a datagram socket has the same protocol family. 
> 
> 
> 
> 
> Reported Issue : [JDK-8308807](https://bugs.openjdk.org/browse/JDK-8308807)

src/java.base/share/classes/sun/nio/ch/SelectorProviderImpl.java line 58:

> 56: 
> 57:     public DatagramChannel openUninterruptibleDatagramChannel(ProtocolFamily family) throws IOException {
> 58:     if(family == null)

Suggestion:

    if (family == null)

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14142#discussion_r1285221577


More information about the nio-dev mailing list