RFR: 8376290: SocketChannel.finishConnect() contains confusing "getsockopt" in exception message for a failed connect() on Windows [v3]
Jaikiran Pai
jpai at openjdk.org
Mon Jan 26 12:50:31 UTC 2026
On Mon, 26 Jan 2026 10:55:39 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> 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.
Done - I've updated the test to skip it if the SocketChannel connects to the destination address unexpectedly, at any point during the test.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29409#discussion_r2727483729
More information about the net-dev
mailing list