Thanks for that information Chris. Problem is that I have the same problem with my mysql dbi connection and I'm not sure if I can get the socket connect handle there. I'll dig further.
--- Chris Ridd <[EMAIL PROTECTED]> wrote: > 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 > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com