RFR: 8327650: Test java/nio/channels/DatagramChannel/StressNativeSignal.java timed out [v4]
Mark Sheppard
msheppar at openjdk.org
Wed May 29 23:35:01 UTC 2024
On Wed, 29 May 2024 23:18:54 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> test/jdk/java/nio/channels/DatagramChannel/StressNativeSignal.java line 103:
>>
>>> 101: public ServerSocketThread () throws Exception {
>>> 102:
>>> 103: socket = new ServerSocket(1122);
>>
>> Re-existing issue but using a hardcoded port means it may fail if that port is already in used. I assume it can be changed to use the wildcard address.
>
> Agreed.
I noted this in my introduction. It could be changed to wildcard, but it may lead to intermittent failures on macOS which is usually rectified by explicitly using loopback address to avoid some idiosyncratic port allocation.
It is note, also, that the UDP port is hardcoded to one from the IANA reserve port range, but uses an unassigned port in that range.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19312#discussion_r1619579055
More information about the nio-dev
mailing list