users@grizzly.java.net

Register 0 op in TCPSelectorHandler

From: Sebastian Dehne <sebastian_at_dehnes.com>
Date: Sun, 04 Oct 2009 20:01:10 +0200

Hi guys,

I'm trying to run grizzly on a non-Sun JVM and run into a problem which
is caused by registering 0 as an channel operation. The problem is
triggered at TCPSelectorHandler line 462 where 0 is applied as an
argument to register().

SocketChannel.validOps() returns which operations are valid and 0 is not
one of them.

I'm using a patch where I just use SelectionKey.OP_WRITE instead of 0,
which works fine for me and also passes all unit tests.

Any suggestions?


Thanks
Sebastian