Le 3/31/14 9:56 PM, Jon V. a écrit :
> TCP works perfectly. If there is a problem. It is elsewhere.
>
> Implementing message delivery confirmation is a part of a higher level
> protocol. If the network/TCP is connected; it will be delivered.
>
> In what environment are you expecting TCP sockets to close all the time?
>
> Here is what happening regarding missing packets 39-55. Those are packets
> that probably exist in the native io buffer. No application can read what
> is in there? The assumption is that data in there will be written. However
> a socket can be closed while data exists in this buffer.
> Your higher level proto needs to send back an ACK with a packet number. You
> need to handle this yourself.
completely agree.
When you unplug the cable, there is nothing MINA can do : the connection
is still opened on its side, until a timeout occurs.
In other words : if a client disconnect brutally without signaling that
it is disconnecting, then unless you check the connection periodically
for idleness, you are dead in the water.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com