[jdev] Heartbeat and tcp keepalive

David Waite dwaite at gmail.com
Tue Mar 1 18:46:47 CST 2005


To get to a 5 second timeout, you will need to heavily modify not just
the keepalives, but put your stack in a non-standard tcp timeout mode
(default timeouts on linux take nearly 4 minutes). These settings I
believe are all operating-system wide.


On Tue, 01 Mar 2005 12:19:34 -0700, Craig Hollabaugh
<craig at hollabaugh.com> wrote:
> Developers,
> 
> I'm integrating test equipment and GUIs using XMPP, works great. Well
> except for when my test equipment<->XMPP single board computer is
> switched off. The server doesn't recognize that the SBC is offline for
> quite some time (same problem as the disconnected dialup laptop user in
> a chat scenario) because of the Linux timeout settings in
> proc/sys/net/ipv4/. I found this thread
> 
> https://www.jabber.org/jadmin/2004-April/015513.html
> 
> but there wasn't a mention of specific settings to reduce the timeout.
> 
> I'm wondering if someone out there has tweaked their TCP timeout
> settings combined with jabberd 1.4.3's heartbeat to recognize the
> disconnected client in under 60 seconds. I'd actually like 5 second
> discovery, heartbeat traffic is not a concern because all my equipment
> is connected to the same 100Mb/s switch.
> 
> If you've successfully configured your system to reduce the timeout, can
> you forward your proc/sys/net/ipv4/ settings?
> 
> Thanks,
> Craig
> 
> --
> ------------------------------------------------------------
> Dr. Craig Hollabaugh, craig at hollabaugh.com, 970 325 0509
> Author of Embedded Linux: Hardware, Software and Interfacing
> www.embeddedlinuxinterfacing.com
> 
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mail.jabber.org/mailman/listinfo/jdev
>



More information about the JDev mailing list