RFR: 8310807: java/nio/channels/DatagramChannel/Connect.java timed out [v4]
Daniel Fuchs
dfuchs at openjdk.org
Thu Nov 16 16:49:46 UTC 2023
> Please find here a fix for a timeout issue observed in DatagramChannel/Connect.java
>
> The suspicion is that the responder may have received some message from some other source and replied to that, leaving the initiator waiting forever.
>
> The proposed fix makes sure the messages exchanged are unique and identifiable and ensure that both the initiator and responder will discard any message that do not have the expected content.
>
> Additional logging should help with diagnosis if the test fails again.
Daniel Fuchs has updated the pull request incrementally with two additional commits since the last revision:
- Responder: try { } finally { } should be around while () { }
- Misplaced trace in finally block
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/16661/files
- new: https://git.openjdk.org/jdk/pull/16661/files/ba2ee580..6667720b
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=16661&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=16661&range=02-03
Stats: 12 lines in 1 file changed: 5 ins; 5 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/16661.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/16661/head:pull/16661
PR: https://git.openjdk.org/jdk/pull/16661
More information about the nio-dev
mailing list