You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Samuel Doyle <sd...@yahoo.com> on 2006/03/08 00:10:02 UTC

Are sessions implicitly closed at some point?

If I have several persistent connections or sessions
established, is there a point where Mina will
automatically close these say if I do a
registry.unbindAll() or something like that?

Thanks, S.D.

Re: Are sessions implicitly closed at some point?

Posted by Samuel Doyle <sd...@yahoo.com>.
Thanks, I'm using 0.9.0 atm.

S.D.

--- Trustin Lee <tr...@gmail.com> wrote:

> On 3/8/06, Samuel Doyle <sd...@yahoo.com> wrote:
> >
> > If I have several persistent connections or
> sessions
> > established, is there a point where Mina will
> > automatically close these say if I do a
> > registry.unbindAll() or something like that?
> 
> 
> Which version are you using?
> 
> In 0.9.x, it automatically disconnects sessions when
> you unbind.  You can
> also disable this feature by calling
> IoAcceptor.setDisconnectOnUnbind( false
> ).  Except this, MINA doesn't disconnect connections
> at its own will.
> 
> HTH,
> Trustin
> --
> what we call human nature is actually human habit
> --
> http://gleamynode.net/
> --
> PGP key fingerprints:
> * E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
> * B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6
> 


Re: Are sessions implicitly closed at some point?

Posted by Trustin Lee <tr...@gmail.com>.
On 3/8/06, Samuel Doyle <sd...@yahoo.com> wrote:
>
> If I have several persistent connections or sessions
> established, is there a point where Mina will
> automatically close these say if I do a
> registry.unbindAll() or something like that?


Which version are you using?

In 0.9.x, it automatically disconnects sessions when you unbind.  You can
also disable this feature by calling IoAcceptor.setDisconnectOnUnbind( false
).  Except this, MINA doesn't disconnect connections at its own will.

HTH,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6