RFR: 8231260: (dc) DatagramChannel::disconnect changes the port of the local address to 0 (lnx)
Daniel Fuchs
daniel.fuchs at oracle.com
Fri Oct 4 13:34:45 UTC 2019
Hi,
Please find below a fix for:
8231260: (dc) DatagramChannel::disconnect changes the port of the
local address to 0 (lnx)
https://bugs.openjdk.java.net/browse/JDK-8231260
The nature of the fix introduces an unlucky (though unlikely) case
where an exception might get thrown which leaves the underlying
native socket in an unspecified state. An API note is added
to the specification of `DatagramChannel::disconnect` to
recommend closing the channel in that case:
CSR to review:
CSR: https://bugs.openjdk.java.net/browse/JDK-8231880
webrev:
http://cr.openjdk.java.net/~dfuchs/webrev_8231260/webrev.00/
best regards,
-- daniel
More information about the nio-dev
mailing list