netty5/transport/src
Jussi Virtanen fc28bccdf1 Fix SelectableChannel support in NioEventLoop (#8344)
Motivation:

Unless the 'io.netty.noKeySetOptimization' system property is set,
registering a SelectableChannel instance to a NioEventLoop results
in a ClassCastException:

    io.netty.channel.nio.SelectedSelectionKeySetSelector cannot be cast
        to java.nio.channels.spi.AbstractSelector

Modifications:

Instead of 'selector', pass 'unwrappedSelector' to SelectableChannel.

Result:

It is possible to register a SelectableChannel instance without
setting the 'io.netty.noKeySetOptimization' system property.
2018-10-09 12:11:07 +08:00
..
main/java/io/netty Fix SelectableChannel support in NioEventLoop (#8344) 2018-10-09 12:11:07 +08:00
test/java/io/netty Fix SelectableChannel support in NioEventLoop (#8344) 2018-10-09 12:11:07 +08:00