Open
Description
I can be naive, but this looks like a reasonable thing to do. Can anyone explain why wasn't this done?
From a first glance this cannot be done because of two reasons:
UnixServerSocketChannel
extendsNativeServerSocketChannel
, whileNativeServerSocketChannel
cannot extendServerSocketChannel
, because it does not bind to socket-addresses but file-descriptors. CouldUnixServerSocketChannel
extendServerSocketChannel
directly while sharing code withNativeServerSocketChannel
in a different way?- While
ServerSocketChannel#validOps()
are onlySelectionKey.OP_ACCEPT
, theUnixServerSocketChannel#validOps()
areSelectionKey.OP_ACCEPT | SelectionKey.OP_READ
for some reasons I don't understand. I have tried changing it toSelectionKey.OP_ACCEPT
, but the tests still pass (so doNativeServerSocketChannel
tests). Why isSelectionKey.OP_READ
required there?
Metadata
Metadata
Assignees
Labels
No labels