hg: jdk/submit: 8231260: (dc) DatagramChannel::disconnect changes the port of the local address to 0 (lnx)
daniel.fuchs at oracle.com
daniel.fuchs at oracle.com
Wed Oct 9 16:46:58 UTC 2019
Changeset: 705c3f88a409
Author: dfuchs
Date: 2019-10-09 17:38 +0100
URL: https://hg.openjdk.java.net/jdk/submit/rev/705c3f88a409
8231260: (dc) DatagramChannel::disconnect changes the port of the local address to 0 (lnx)
Summary: DatagramChannel::disconnect will attempt to rebind to the original port if the local port switches back to 0 after the association is disolved by the system.
Reviewed-by: alanb, chegar, fweimer
! src/java.base/share/classes/java/nio/channels/DatagramChannel.java
! src/java.base/share/classes/sun/nio/ch/DatagramChannelImpl.java
+ test/jdk/java/nio/channels/DatagramChannel/AddressesAfterDisconnect.java
More information about the jdk-submit-changes
mailing list