RFR: 8376290: SocketChannel.finishConnect() contains confusing "getsockopt" in exception message for a failed connect() on Windows [v2]
Alan Bateman
alanb at openjdk.org
Mon Jan 26 10:58:39 UTC 2026
On Mon, 26 Jan 2026 10:48:13 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
>> test/jdk/java/nio/channels/Selector/ConnectionRefusedMessage.java line 76:
>>
>>> (failed to retrieve contents of file, check the PR for context)
>> I think the test will have to retry if "connected" returns true as it's too easy to have interference between tests on the same host.
>
> Hello Alan, do you mean there could be something that could be listening on these "restricted" ports, after we ensured in `findSuitableRefusedAddress()` that there wasn't anyone listening there?
Yes, I think I'd prefer if the test skipped if connected or retried.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29409#discussion_r2727164187
More information about the net-dev
mailing list