Re: Help, Keepalive timer, Solaris 2.3 & Informix OnLine 5.0
Posted in 1994
In article <3145p1$fvh@hudson.lm.com>, aewhale@telerama.lm.com (Albert Whale) says: > > Ok, here it is! Fresh from the Sun Tech Support line. Document ID: 1007 SYNOPSIS: How to set socket keep alive timeout length? DETAIL DESCRIPTION: Under 4.1.x the socket KEEP_ALIVE time out length was configured in the kernel. One could change the timeout value by editing the 'tcp_keepidle' value in /sys/netinet/in_proto.c How can the timeout value be changed in Solaris 2.x and in what units? Trying to add a line like "set tcp_keepidle=240" in /etc/system just causes a warning at boot time that there is no tcp_keepidle param. SOLUTION SUMMARY: You can change the TCP keepalive interval by using the "ndd" command. You can run the following command to view the current setting of the TCP keepalive timeout value: % ndd /dev/tcp tcp_keepalive_interval 7200000 The value is in units of milliseconds. Use the "ndd" command with the "-set" flag to change the keepalive timeout value, e.g.: % ndd -set /dev/tcp tcp_keepalive_interval 1200000 Note that there is a bug in Solaris 2.2 that prevents TCP keepalives from working correctly. The bugid is 1084913. This bug is fixed in Solaris 2.3. Guess that about sums it up! Hope that this helps.