From my HTC Amaze 4G on T-Mobile. The first nationwide 4G network

----- Reply message -----
From: "Emmanuel Lécharny" <elecha...@gmail.com>
To: <users@mina.apache.org>
Subject: IoSession.close() method
Date: Wed, Oct 2, 2013 3:36 pm


Le 10/2/13 9:57 PM, Jose María Zaragoza a écrit :
> Hello:
>
> I'm working with Mina 1.x ( old, I know ) and I've got a question
>
> About docs, IoSession.close() closes the session immediately.
>
> If i've got
>
> session.write(data)
> session.close()

I can't confirm...
>
>
> can be sure that data is sent properly ?
>
> o do I need to perform session.close() on messageSent method ?

If you need to be sure that your message has been sent, yes, that would
be safer.

Don't forget to also close your session on exceptions

-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com 

Reply via email to