You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Michael Bauroth <Mi...@falcom.de> on 2006/04/18 23:18:28 UTC

One decoder instance for each session?

Hi,

is it right, that a decoder, which I've added to the chain of the 
SocketAcceptorConfig, will be instantiated separately fro each session? 
In other words - when I have 2000 opened IoSessions, are there also 2000 
similar decoder instances? It seems so (have seen it in my log), but I'm 
not sure, if it is right ...

Regards
Michael

Re: One decoder instance for each session?

Posted by peter royal <pr...@apache.org>.
On Apr 18, 2006, at 5:18 PM, Michael Bauroth wrote:
> is it right, that a decoder, which I've added to the chain of the  
> SocketAcceptorConfig, will be instantiated separately fro each  
> session? In other words - when I have 2000 opened IoSessions, are  
> there also 2000 similar decoder instances? It seems so (have seen  
> it in my log), but I'm not sure, if it is right ...

There are changes in the MINA trunk that will allow for thread-safe  
decoders to be safely shared amongst sessions.
-pete

-- 
proyal@apache.org - http://fotap.org/~osi