Thanks for your replies. However, I cannot enforce those settings using the SocketSessionConfig object.
Case in point: acceptor.getSessionConfig().setReuseAddress(true); -> this one does not get enforced. acceptor.setReuseAddress(true); -> this one works as expected. Shouldn't both be equivalent? I can keep using the second method, but I guess this means TCP_KEEPALIVE and TCP_NODELAY flags are not enforced if I use getSessionConfig() to set those flags... Thank you, Zigor. On 25 May 2010, at 09:17, Ashish wrote: > acceptor.getSessionConfig().setTcpNoDelay(true); > > just recall from top of my head > > On Tue, May 25, 2010 at 12:35 PM, Zigor Salvador > <[email protected]> wrote: >> Hi, >> >> MINA 2.0 related, why is there no >> acceptor.setSessionConfig(SocketSessionConfig) method? >> >> I can get the default configuration with acceptor.getSessionConfig but I >> don't know how to make changes in order to, for instance, >> setTcpNoDelay(true) for that acceptor. >> >> Thank you, >> >> Zigor. > > > > -- > thanks > ashish > > Blog: http://www.ashishpaliwal.com/blog > My Photo Galleries: http://www.pbase.com/ashishpaliwal
