You can control how fast TCP connections are recycled by adjusting the value of the Solaris tcp_time_wait_interval parameter value.
The Solaris tcp_time_wait_interval parameter specifies how long a TCP port is unavailable after both a client and server have closed a TCP/IP connection. Making a port unavailable after both the client and the server connections have closed prevents new programs from inadvertently receiving packets meant for a previous program.
The following table lists the default values for the tcp_time_wait_interval parameter:
Operating system | Default value |
---|---|
Solaris 8 | 240,000 milliseconds (4 minutes) |
Solaris 9 and 10 | 60,000 milliseconds (1 minute) |
By decreasing the tcp_time_wait_interval value, TCP connections can be recycled more quickly.
To adjust the TCP wait time, run the following command where "240000" is the value (in milliseconds) that is appropriate for your environment.
ndd –set /dev/tcp tcp_time_wait_interval 240000