RFR: 8255604: java/nio/channels/DatagramChannel/Connect.java fails with java.net.BindException: Cannot assign requested address: connect

Conor Cleary ccleary at openjdk.java.net
Thu Oct 29 17:50:53 UTC 2020


Recent fixes to Connect.java caused tier2 test failures on windows-x64 operating systems. This was caused by the Actor in the test attempting to connect to a wildcard address which it attained from the Reactor's getSocketAddress(), which in turn was set to the wildcard address in the Reactor constructor. This has been fixed by using the loopback address and an ephermal port number (0) int the Reactor's bind() operation.

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

Commit messages:
 - 8255604: java/nio/channels/DatagramChannel/Connect.java fails with java.net.BindException: Cannot assign requested address: connect

Changes: https://git.openjdk.java.net/jdk/pull/939/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=939&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8255604
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/939.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/939/head:pull/939

PR: https://git.openjdk.java.net/jdk/pull/939


More information about the nio-dev mailing list