RFR: 8277949: (dc) java/nio/channels/DatagramChannel/AdaptorBasic.java failed in timeout
Daniel Fuchs
dfuchs at openjdk.org
Thu Jun 27 06:49:20 UTC 2024
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().
-------------
Commit messages:
- Avoid using wildcard address on macOS if possible
- Minor doc fix
- 8277949
Changes: https://git.openjdk.org/jdk/pull/19922/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19922&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8277949
Stats: 61 lines in 2 files changed: 51 ins; 0 del; 10 mod
Patch: https://git.openjdk.org/jdk/pull/19922.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/19922/head:pull/19922
PR: https://git.openjdk.org/jdk/pull/19922
More information about the nio-dev
mailing list