On 9/20/10 10:03 AM, FLV wrote:
Hi All,
i would know how is the correct behavior about sessions in this case:
the client is connected to the server and switch off his connection.
I saw that that session status now is idle, specificatly BOTH_IDLE.
What do you exactly mean by 'switch off' ? Closing the session
gracefully ? (probably not as the session remain idle) Brutally 'close'
the session for instance by unplugging the network cable ? (in this
case, yes, the server will never close the session until the TCP socket
close due to a timeout)
What is the correct behavior in order to have the right mangement of
sessions in this case ?
*if* you want to manage IDLE sessions due to a user who has brutally
exited, then you have to manage the IdleSession message. You can check
how it's done here :
http://mina.apache.org/mina-v20-quick-start-guide.html
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com