RFR: 8267353: java/net/SctpSanity.java fails due to Protocol not supported

Chris Hegarty chegar at openjdk.java.net
Wed May 26 15:44:12 UTC 2021


On Wed, 26 May 2021 03:54:14 GMT, Jie Fu <jiefu at openjdk.org> wrote:

> Hi all,
> 
> java/net/SctpSanity.java fails on some of our test machines due to Protocol not supported.
> The reason is that the test fails to detect all the cases when a machine doesn't support SCTP.
> 
> The fix just follows what are done in [1][2][3] to detect unsupported paltforms at the beginning.
> 
> Thanks.
> Best regards,
> Jie
> 
> [1] https://github.com/openjdk/jdk/blob/master/test/jdk/com/sun/nio/sctp/SctpMultiChannel/Util.java#L59
> [2] https://github.com/openjdk/jdk/blob/master/test/jdk/com/sun/nio/sctp/SctpServerChannel/Util.java#L59
> [3] https://github.com/openjdk/jdk/blob/master/test/jdk/com/sun/nio/sctp/SctpChannel/Util.java#L59

There is no check for ENOPROTO in the JDK SCTP code. There is an implicit assumption that SCTP is "supported" when the native libsctp.so.1 library successfully loads and can be introspected. Maybe there should be an explicit ENOPROTO in Java_sun_nio_ch_sctp_SctpNet_socket0.

Maybe the machine in question has the libsctp.so.1 library, but the kernel module is not loaded or something?


$ which checksctp

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

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


More information about the net-dev mailing list