On 10/13/11 12:25 PM, Vishal Gupta wrote:
Thanks a ton. I guess that was the problem. I have moved it to the last, my 
decoder is not expensive either in terms of processing or expected data size.

I remember adding Executor was done because I read somewhere...
to solve the problem to support more than 16 (noOfProcessor x 8) concurrent 
connections, prior to which it was putting the connections in queue(wait state) 
and not allowing till any one of 16 is free.

Strange... If your handler process the request fast enough, you should not need an executor, unless you want some messages to be processed in parallel for a specific session (like if you have an abandon request that could be used to kill a long request for a session).



Also while on the help mode, getting little greedy here and looking for quick 
help without searching. While I shutdown my MINA using KILL(SIGTERM) few client 
connection remains in TIME-WAIT state, how can I set SO_REUSEADDR option in 
MINA so that kernel allows to start even if there are connections in WAIT state.

            acceptor.getSessionConfig().setReuseAddress( true );


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

Reply via email to