Lecharny:
I wrote my own encode and decode method that implements MessageEncoder and 
MessageDecoder. 
I don't think it's a prblem in codec because it could work OK when I set small 
sendBufferSize, I ever sent more than 3 million messages. If I set 
sendBufferSize to 1024, it could run nearly one half hour, and then become 
slow. If I set sendBufferSize to 4096, may become slow in 5 minutes. All these 
happened when I continue to send messages.  I mean I'v tested the encode and 
decode methods. 
I found it's slow at the line:
wf.awaitUninterruptibly(); 
It's still work, but become very slow


2010-11-29 



bjrenyong 



发件人: Emmanuel Lecharny 
发送时间: 2010-11-29  00:04:31 
收件人: users 
抄送: 
主题: Re: set sendBufferSize to 1024 or larger will cause write block 
 
On 11/28/10 4:41 PM, bjrenyong wrote:
> 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?
What protocol are you decoding ? Is it your own one ?
Do you have any idea where the server is blocked ? Have you added some 
log in the filter chain (LogFilter) to know what happens?
If your client never gets an answer, basically it's either because your 
server does not sent one, or because your client does not have the full 
response decoded. You have to determinate what is the cause. Some 
Wireshark session could help.
-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com

Reply via email to