NIO The SocketChannel is always readable after send a request?
It seems the SocketChannel is always readable after send a request. I tested and found that but I'm not sure if it is right?
More detail:
--Create a SocketChannel, connect to server in non blocking mode, register to Selector for connecting (SelectionKey.OP_CONNECT) , after finishConnect(), register to Selector for writing (SelectionKey.OP_WRITE). After writing request, register to Selector for reading ((SelectionKey.OP_READ)). After finish reading (read to end of stream : -1 ), register to Selector for writing the second request, then register for reading. At this moment, the Selector always return that the SocketChannel is readable, although the stream data is still empty (there is only -1, no new data from server ).
Why the Selector say that the channel is readable, though the server has not responded yet (stream data is empty) ?
Thank you in advance for your answers!

