8231259: (dc) DatagramChannel::disconnect re-binds socket to the wildcard address (macOS)

Alan Bateman Alan.Bateman at oracle.com
Tue Nov 19 11:21:25 UTC 2019


On 19/11/2019 10:44, Daniel Fuchs wrote:
> :
>
> How so? Unless I miss something these all pertain to the
> underlying channel's socket - not to the channel itself.
>
> And the recommendation to close the channel if disconnect fails
> still holds.
One other comment on is that two places that have a high risk of failing 
is Net.socket due to insufficient file descriptors, and the Net.bind due 
a race with some other entity binding to the same port. Everything else 
is in the noise. In time I hope Apple will fix the macOS bug so that we 
don't need to be concerned with issues like this.

-Alan.


More information about the nio-dev mailing list