RFR: 8277949: (dc) java/nio/channels/DatagramChannel/AdaptorBasic.java failed in timeout
Jaikiran Pai
jpai at openjdk.org
Fri Jun 28 09:16:21 UTC 2024
On Thu, 27 Jun 2024 06:44:30 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
> On macOS, when binding a datagram socket to the wildcard address with port 0, or when connecting an unbound socket (which ends up binding the socket to the wildacrd with port 0 first), the system may assign a port which is already used by another socket for a different local address. When that happens, a datagram may get misrouted which explains the intermittent failures where the test is blocked in receive().
The changes look OK to me.
-------------
Marked as reviewed by jpai (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/19922#pullrequestreview-2147452497
More information about the nio-dev
mailing list