You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by Allen Jiang <al...@hz.webex.com> on 2008/09/15 08:37:08 UTC
Need client to close the session ?
Hi,All,
When I connection with login server,the connection type is short live connection, in server side ,I add the following code:
WriteFuture future =session.write(message);
future.addListener(IoFutureListener.CLOSE);
The above code didn't close the session until the message has been sent.
when the client have received the message , the session.isconnect() 's value is still true.
At last,my question is this: need I close the session after I received message in short term connection.
Regards!
Allen
Re: Need client to close the session ?
Posted by Emmanuel Lecharny <el...@gmail.com>.
> At last,my question is this: need I close the session after I received message in short term connection.
>
Well, it's a best practice to close things when your are done with them...
--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org