RFR 8231187: SelectorProvider.inheritedChannel() returns TCP socket channel for Unix domain socket
Alan Bateman
Alan.Bateman at oracle.com
Fri Sep 20 12:20:06 UTC 2019
On 20/09/2019 11:56, Michael McMahon wrote:
>
> Is the above not required only to allow draining of the socket when
> SO_LINGER is enabled,
> which is not supported in this case?
It's needed to coordinate closing with threads that are doing blocking
I/O on the channel. SourceChannelImpl and SinkChannelImpl are good
starting point because they are close to what you want, without all the
additional details that SocketChannelImpl needs to be concerned with.
-Alan
More information about the nio-dev
mailing list