directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trustin Lee <trus...@gmail.com>
Subject Re: [mina] Closing a session
Date Fri, 18 Feb 2005 00:41:19 GMT
Hi,


On Thu, 17 Feb 2005 23:42:18 +0100, Jan Andersson <janne@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/

Mime
View raw message