RFR: 8310807: java/nio/channels/DatagramChannel/Connect.java timed out [v2]

Daniel Fuchs dfuchs at openjdk.org
Tue Nov 14 18:01:44 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 one additional commit since the last revision:

  Minor cleanup 3

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/16661/files
  - new: https://git.openjdk.org/jdk/pull/16661/files/b659b368..958d5b76

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=16661&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=16661&range=00-01

  Stats: 5 lines in 1 file changed: 1 ins; 0 del; 4 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