You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Ashish <pa...@gmail.com> on 2009/01/02 08:37:17 UTC
NioSocketAcceptor ReceiveBufferSize??
Happy New Year to All!
Was browsing the NioSocketAcceptor class and came across this snippet
Line : 244-245
// XXX: Do we need to provide this property? (I think we need to remove it.)
socket.setReceiveBufferSize(getSessionConfig().getReceiveBufferSize());
For UDP applications this property helps in reducing the number of packet drops.
Does this property have any effect in TCP applications?, as TCP has
acknowledgement and
flow control built. In a way, what are the advantages of having higher
receiver buffer or otherwise in TCP applications?
--
thanks
ashish
Blog: http://www.ashishpaliwal.com/blog
My Photo Galleries: http://www.pbase.com/ashishpaliwal