You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Akbar Munir Chaudhary <ak...@acm.org> on 2006/11/18 13:56:39 UTC

TCP packet delivery failure

In the case of packet being successfully delivered, MINA does fire IoHandler.messageWritten(). But if from some reason, the packet can not be delivered, is there a notification that my application can listen to to process failure workflow?

Thanks,
Akbar.



Re: TCP packet delivery failure

Posted by Trustin Lee <tr...@gmail.com>.
Hello Akbar,

On 11/18/06, Akbar Munir Chaudhary <ak...@acm.org> wrote:
>
> In the case of packet being successfully delivered, MINA does fire
> IoHandler.messageWritten(). But if from some reason, the packet can not be
> delivered, is there a notification that my application can listen to to
> process failure workflow?


Unfortunately, no.  It's an O/S that guarantees the delivery.
messageWritten event is fired when the data is written out to the kernel
write buffer.  To make sure the message is delivered, you will have to wait
for an acknowledge message from the remote peer by redesigning/refactoring
your protocol.

HTH,
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