On 11/28/10 2:31 PM, bjrenyong wrote:
Hi, I have a strange problem.
I wrote a program, the client connect to server by long connect. Then I send 
messages from client to server, the server write responses to client. If I set 
sendBufferSize of client to 512, it works OK. but if I set sendBufferSize 
larger, the client program will be blocked. More larger, more quickly the 
client be blocked.

the block happend at the code:
WriteFuture wf = session.write(submit);
wf.awaitUninterruptibly();  //very slow when blocked, need about 5 seconds.

Now I have to set the sendBufferSize  to 512 to prevent the client write block. 
Could anybody tell me what's the problem? And how to resolve it? Thanks a lot.
It's very likely that there is a problem in the codec you are using. What kind of protocol are you using ?


--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com

Reply via email to