Using OP_CONNECT with Selector.select causes selector to fire repeatedly

2012-05-09 Thread Deven You
Hi All, When start a simple server, listening on a port like 8765, which just accepts connections. We then register a non-blocking SocketChannel (the client) with a selector with interest in OP_CONNECT, so that we can use the selector to notify us when the channel is ready to finish connecting

Re: Using OP_CONNECT with Selector.select causes selector to fire repeatedly

2012-05-09 Thread Deven You
I suddenly realized this topic should be in nio-dev mailing list. Please ignore previous mail. Thanks a lot! On 05/09/2012 03:26 PM, Deven You wrote: Hi All, When start a simple server, listening on a port like 8765, which just accepts connections. We then register a non-blocking SocketChann