Simmons, Aaron a écrit :
You can change this value before opening the acceptor, by injecting the desired value in the SessionConfig object. Something like :

final IoAcceptor acceptor = new NioSocketAcceptor();
acceptor.getSessionConfig().setSendBufferSize( <whatever fits you> );
...

Hmm, according to the docs for ISessionConfig here http://mina.apache.org/report/trunk/apidocs/org/apache/mina/core/session/IoSessionConfig.html
there's no setSendBufferSize.  Perhaps you meant setReadBufferSize?


As inconsistent it may sounds, the class you want to look at is SocketSessionConfig, not inheriting from IoSessionConfig... Don't ask my whay ;)


--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com


Reply via email to