Technical article 127621

How to change the TIME_WAIT period (tcp_2msl)

OpenServer 5.0.6OpenServer 5.0.7

Written · Last revised

Problem

I want to change the TIME_WAIT period from its default 30 seconds.

There is a parameter in /etc/default/inet which I can change with

# inconfig tcp_2msl <new value>

where "new_value" is between 1 and 240.

But in /etc/conf/pack.d/tcp/space.c there is a line:

int     tcp_2msl = 30;

Do I have to run inconfig and do I have to make changes to space.c?

Solution

The values in space.c are default values.

To make a change to tcp_2msl it is sufficient to run:

# inconfig tcp_2msl <new value>

where "new_value" is between 1 and 240.

No kernel rebuild or reboot is required!

From the Xinuos technical article database, record 127621. Reproduced with permission. The original is at www.sco.com/ta/127621, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.