Problem
I want to change the default time TCP/IP waits before dropping a connection on my SCO OpenServer 5.0.0 system.
Cause
SCO TCP/IP implements a 'keep-alive' timer, as required by the
RFC specifications for TCP/IP. The minimum delay before
disconnection is two hours.It is possible to modify this value. Doing so will create a
TCP/IP connection outside the RFC specification. Also, any
long delays in response will cause the connection to close. Solution
The TCP/IP connection time can be modified by altering the value of the 'tcp_keepidle' parameter contained in the file "/etc/default/inet". The default setting is 7200 seconds. Use the 'inconfig(ADMN)' command to modify the file.
The current setting for the 'tcp_keepidle' parameter can be found using:
# inconfig tcp_keepidle
inconfig: symbol tcp_keepidle has current value 7200,
minimum 300, maximum 86400Modify the setting as desired. The example below has modified
the setting to 1800 seconds:# inconfig tcp_keepidle 1800Check the setting:# inconfig tcp_keepidle
inconfig: symbol tcp_keepidle has current value 1800,
minimum 300, maximum 86400Restart your system. The '/etc/inconfig' utility is invoked by the "/etc/rc2.d/S85tcp" startup file when the system enters multiuser mode.
See also
How to modify this parameter for SCO TCP/IP 1.2.1/SCO UNIX System V/386 is detailed in TA107452; "_fst script for modifying the disconnect time for TCP/IP for SCO UNIX."