8146298: (dc spec) connect and disconnect methods should specify that they may block
Alan Bateman
Alan.Bateman at oracle.com
Thu Oct 31 13:49:57 UTC 2019
On 31/10/2019 00:42, Brian Burkhalter wrote:
> For the issue [1] to improve the specification of DatagramChannel please review this doc change [2]. Hopefully I’ve captured the behavior accurately. Note the class-level doc change to match SocketChannel.
>
I don't think the change to the class description is needed because
connect/disconnect aren't doing I/O, they are just setting up or
dissolving an address association.
The sentence in connect/disconnect to describe that it will blocking
until outstanding I/O operations complete is okay but the version in
connect has "however" in the middle of the sentence, I think you can
drop that so that it is consistent with disconnect.
I assume we should move the statement about discarding datagrams to an
implNote.
-Alan
More information about the nio-dev
mailing list