On 17/3/05 11:13 pm, Chris Masters <[EMAIL PROTECTED]> wrote: > Thanks Chris, that looks much simpler than an external > timeout mechanism.
Only if it fools your firewall ;-) > The default timeout for SO_KEEPALIVE seems to be 2 > hours. Any ideas how I can change this to 30 mins for > example? This is a parameter of your machine's TCP stack. On darwin and FreeBSD you'd do 'sysctl -w net.inet.tcp.keepintvl=nnn', on Linux you'd 'echo nnn > /proc/sys/net/ipv4/tcp_keepalive_intvl' (2.4 and later kernels) and on Windows you'll probably have to change something well documented in the registry! Cheers, Chris