directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Andersson <ja...@minq.se>
Subject Re: [mina] Closing a session
Date Fri, 18 Feb 2005 08:18:40 GMT
>>  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


Mime
View raw message