Lecharny:
Thanks for your reply. I'm using the DemuxingProtocolCodecFactory because I 
have multiple types of messages to send.  Could you give me more prompting? I'm 
sorry for my bad English.


2010-11-28 



bjrenyong 



发件人: Emmanuel Lecharny 
发送时间: 2010-11-28  22:54:23 
收件人: users 
抄送: 
主题: Re: set sendBufferSize to 1024 or larger will cause write block 
 
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