On Dec 16, 2009, at 1:33 AM, Emmanuel Lecharny wrote:
Guillaume Nodet a écrit :
Thx Shawn for the detailed explanation.
I wonder if such a fix should be put in mina-core too.
Most certainly. There is already a JIRA opened for that
(DIRMINA-561, from the top of my head), as somepeople has complained
that transfering big files takes forever on MINA, due to this
limitation. There is one more thing to know : once the socket has
been crated, it's not anymore possible to increase the buffer size
above 64k, so it has to be done *before* creating the socket.
IMO, the default size must be the system default, and the MINA user
is free to change this value.
Great work. We should collect all of our NIO/IO lore somewhere. I've
placed this stuff in the Mina 3.0 design document. I'm sure there's
other stuff, e.g. the perceived gather/scatter performance problem.
Please feel free to augment:
http://cwiki.apache.org/confluence/display/MINA/MINA+3.0+design
Regards,
Alan