My mina version is 2.0.0-RC1

2010-11-28



bjrenyong



发件人: bjrenyong
发送时间: 2010-11-28 21:30:59
收件人: users
抄送: 
主题: set sendBufferSize to 1024 or larger will cause write block

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.

2010-11-28 



bjrenyong 

Reply via email to