4 messages in org.apache.mina.devRe: detection of lost connection when...
FromSent OnAttachments
Fernando C. de CastroSep 15, 2006 6:54 pm 
Trustin LeeSep 15, 2006 9:50 pm 
Mike GrundvigSep 16, 2006 8:39 am 
Vinod PanickerSep 17, 2006 8:23 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: detection of lost connection when it doesn't close "cleanly"Actions...
From:Vinod Panicker (vino@gmail.com)
Date:Sep 17, 2006 8:23:39 am
List:org.apache.mina.dev

On 9/16/06, Fernando C. de Castro <fern@altriz.com.br> wrote:

Hello,

I looked in the archive before posting this and couldn't find an answer, so
please excuse me if it has already been commented.

I was wondering if there is a way to detect a lost connection when the other
side doesn't close the connection "cleanly".

<snip/>

Unfortunately, if you want to know of this asap, then you will have to implement your own solution for checking if the session is alive. I've also had notorious experiences with GPRS gateways (they don't seem to bother with TCP/IP semantics) and have ended up with application level pinging.

AFA MINA is concerned, it should not deal itself with checking for such things, since it might possibly lead to breaking the application protocol.

Regards, Vinod.