[JDEV] client timeouts

David Waite mass at akuma.org
Mon Jul 1 10:14:47 CDT 2002


TCP Keepalives are a method for a operating system/networking stack to 
determine if the connection it established is still alive. It is TCP's 
only internal 'ping' - when a break normally happens in the network, 
there is no notification that the connection has been broken sent back 
to the host - the local host detects that the remote host is down when 
the local host sends a message which fails to be acknowledged.

Keepalive is a message sent by the TCP stack after $time time of 
inactivity on the connection (where $time is usually defined as two 
hours, and on many systems is still not configurable to a particular 
application or socket.) If that message fails, the socket is 
disconnected as normal.

-David Waite

Sean Kirkby wrote:

> Oh, I see.  that makes sense.  As it turns out, I am indeed using NAT 
> in my office, and the server I am connecting to is across the 
> continent, so this is probably it.
>  
> In any event, some sort of "keep alive" is needed in this situation, 
> right?  Is sending white space to the XML stream every 60 seconds the 
> best way to do this?
>  
> Is your suggestion about "TCP Keep Alives" targeted to this problem?
>  
> Thanks a ton.
>  
> --sk!
>
> >>> m at tthias.net 7/1/2002 2:26:29 AM >>>
> Hi Sean!
>
> Sean Kirkby wrote:
>
> >  Does the server need to see a bit of activity from the client
> > regularly in order for the connection to stay alive?  The behavior in
> > WinJab, Exodus, and JIM seem to indicate this.  Should my client
> > emulate their behavior (i.e. sending "<sp><tab><sp>" every 60 seconds)?
>
> No, the server doesn't need this, it's done because of NAT-Routers. If
> you are using a NAT-System to share an internet account between
> different computers, this system forgets connections without activity
> after some time.
>
>
> Tot kijk
>     Matthias
>
> -- 
> Fon: +49-700 77007770        http://matthias-wimmer.de/
> Fax: +49-89 312 88654        jabber://mawis@charente.de
>
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev





More information about the JDev mailing list