http://www.nowamagic.net/academy/detail/23350305 http://www.tldp.org/HOWTO/html_single/TCP-Keepalive-HOWTO/