[jdev] Heartbeat and tcp keepalive

Craig Hollabaugh craig at hollabaugh.com
Tue Mar 1 13:19:34 CST 2005


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 


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? 


Dr. Craig Hollabaugh, craig at hollabaugh.com, 970 325 0509
Author of Embedded Linux: Hardware, Software and Interfacing

More information about the JDev mailing list