Skip to content
Browse files
8255604: java/nio/channels/DatagramChannel/ fails with ja…
… Cannot assign requested address: connect

Reviewed-by: dfuchs, michaelm
  • Loading branch information
c-cleary authored and dfuch committed Oct 29, 2020
1 parent 2a2fa13 commit d5138d1
Showing 1 changed file with 1 addition and 1 deletion.
@@ -133,7 +133,7 @@ public static class Reactor implements AutoCloseable, Runnable {
final DatagramChannel dc;

Reactor() throws IOException {
dc = InetSocketAddress(0));
dc = InetSocketAddress(InetAddress.getLoopbackAddress(), 0));

SocketAddress getSocketAddress() throws IOException {

1 comment on commit d5138d1

Copy link

@bridgekeeper bridgekeeper bot commented on d5138d1 Oct 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.