You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Hieu Phan Thanh <hi...@Cybersoft-VN.com> on 2006/11/06 12:11:32 UTC

[MINA] Does MINA finish all "decoded messages" before stopping?

Hello,
I have a confused:
My software is listening on some data ports.
When user wants to stop the software, I used the
"SocketAcceptor.unbindAll()" as usual.
I think that all messages which have been decoded are finished by mina
framework at messageReceived() method. 
I have been testing this problem and it seems my assumption is correct.
Do I miss something? Please advice me.

Thanks & best regards,
Hieu Phan.



Re: [MINA] Does MINA finish all "decoded messages" before stopping?

Posted by Trustin Lee <tr...@gmail.com>.
On 11/6/06, Hieu Phan Thanh <hi...@cybersoft-vn.com> wrote:
>
> Hello,
> I have a confused:
> My software is listening on some data ports.
> When user wants to stop the software, I used the
> "SocketAcceptor.unbindAll()" as usual.
> I think that all messages which have been decoded are finished by mina
> framework at messageReceived() method.
> I have been testing this problem and it seems my assumption is correct.


Yes, it's correct.  Once the messageSent event is fired, it is forwarded to
IoHandler even if the connection is being closed at the moment.  It is
because all events are stored in a queue.

Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6