nio: client channel always writeable

hi
i need an asynchronous client server connection between 3 clients and one server. currently i´m using java.nio and the following problem encountered:
one of the clients always stays in the writeable-mode, so never receives messages. i tried to register another interstOp but then there´s no communication at all.
now i´m thinking about two channels on each client. one for reading and one for writing.
???
pako

Hi
My understanding is that unless the buffer is full they will always be writable, and thus if you are registered for op_write you will always select it. blahblahblah’s document shows a way round this, which is just to unregister op_write when you have nothing to write.

HTH

Endolf

thanks, i finally made it.

pako