On Jul 23, 2006, at 11:14 AM, hpq852 wrote:
It alse can't work well, Now the client is :public void run() { for(int i=0; i<10; i++) { out.print(" Hello World \n"); out.flush(); } }if I invode the flush method for 10 times, I also want to get the dataRead(IoSession session, ByteBuffer rb) mothed invoked
Try toggling TCP_NODELAY. By default, your TCP stack will try to combine data into a single packet, which would result in fewer invocations of dataRead.
-epte -- [EMAIL PROTECTED] - http://fotap.org/~osi
smime.p7s
Description: S/MIME cryptographic signature
