You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Jan Andersson <ja...@minq.se> on 2005/02/17 23:42:18 UTC
[mina] Closing a session
A few Mina questions:
- is it possible to from the server-side close/destroy a session?
- if no traffic is received from a client, when is a session closed?
Can this
be controlled?
/Janne
Re: [mina] Closing a session
Posted by Jan Andersson <ja...@minq.se>.
>> A few Mina questions:
>>
>> - is it possible to from the server-side close/destroy a session?
>> - if no traffic is received from a client, when is a session closed?
>> Can this
>> be controlled?
>
> Yes, you can do both. There is a property called
> SessionConfig.idleTime. If you set idle time, MINA will notify you by
> sessionIdle event when the reader/writer/both becomes idle. So you
> can close the connection at that moment.
I must have been really tired yesterday, couln't find the
ProtocolSession.close() method ;)
Thanks,
/Janne
Re: [mina] Closing a session
Posted by Trustin Lee <tr...@gmail.com>.
Hi,
On Thu, 17 Feb 2005 23:42:18 +0100, Jan Andersson <ja...@minq.se> wrote:
> A few Mina questions:
>
> - is it possible to from the server-side close/destroy a session?
> - if no traffic is received from a client, when is a session closed?
> Can this
> be controlled?
Yes, you can do both. There is a property called
SessionConfig.idleTime. If you set idle time, MINA will notify you by
sessionIdle event when the reader/writer/both becomes idle. So you
can close the connection at that moment.
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/