On Thu, 3 Aug 2023 11:41:08 GMT, Deepa Kumari <[email protected]> wrote:

> I am curious about how setting the `jdk.net.usePlainDatagramSocketImpl` 
> property impacts their behavior. I would like to understand why they pass 
> with this configuration and whether it has any implications.
> 
> Could you please share your insights on this matter? I appreciate your 
> assistance in understanding this behavior and ensuring the correctness of the 
> tests.

I think this issue needs an authoritative summary on what AIX supports and 
doesn't support. The observations reported conflict with some of the comments 
so I don't think I can say definitely if there are code or test changes 
required. 

For a long time, Net.canJoin6WithIPv4Group() has returned "false" on AIX so 
there is no attempt to join IPv4 multicast groups with a dual IPv4/IPv6 socket. 
DatagramChannel has supported multicasting since JDK 7 (2011) so if there were 
issues or test failures on AIX then surely they would have been noticed before 
now, or maybe all the test were excluded, or maybe the testing was done with 
IPv6 disabled.

The old DatagramSocketImpl implementation didn't have a setting/configuration 
to say if a dual IPv4/IPv6 socket could join an IPv4 multicast group, it just 
attempted it. Your results suggests that it works, which is surprising. Does 
AIX have the equivalent of strace to trace system calls? It might be useful to 
confirm that the socket is actually IPv6 and that it joining IPv4 multicast 
groups.

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

PR Comment: https://git.openjdk.org/jdk/pull/14142#issuecomment-1663863113

Reply via email to