# TIME WAIT

**URL:** https://forums.suse.com/t/time-wait/28994
**Category:** SLES Networking
**Created:** [November 17, 2016, 12:25pm UTC](https://forums.suse.com/t/time-wait/28994 "2016-11-17T12:25:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![acbarroso](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@acbarroso](https://forums.suse.com/u/acbarroso)
#### Post date: [November 17, 2016, 12:25pm UTC](https://forums.suse.com/t/time-wait/28994/1 "2016-11-17T12:25:44Z")

</div>

Hi,

I’ve the TIME WAIT parameter like:

# TIME\_WAIT seconds

net.ipv4.tcp\_fin\_timeout = 30

# Recycle and Reuse TIME\_WAIT sockets faster

net.ipv4.tcp\_tw\_recycle = 1  
net.ipv4.tcp\_tw\_reuse = 1

so the machine should liberate the port after 60 seconds I think… but it’s not working, still at TIME WAIT for 60 seconds more…

I think that the problem can be the firewall, but I need confirm that

Anyone Can help me?

Thanks.

---

<div class="post-metadata">

### Author: ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)
#### Post date: [November 17, 2016, 3:54pm UTC](https://forums.suse.com/t/time-wait/28994/2 "2016-11-17T15:54:17Z")

</div>

On 11/17/2016 03:34 AM, acbarroso wrote:[color=blue]

> I’ve the TIME WAIT parameter like:
> 
> # TIME\_WAIT seconds
> 
> net.ipv4.tcp\_fin\_timeout = 30[/color]

Where do you have this set? Did you make sure it is applied to the system  
via the following:

```auto
sysctl -a | grep net.ipv4.tcp
```

[color=blue]

> # Recycle and Reuse TIME\_WAIT sockets faster
> 
> net.ipv4.tcp\_tw\_recycle = 1  
> net.ipv4.tcp\_tw\_reuse = 1
> 
> so the machine should liberate the port after 60 seconds I think… but  
> it’s not working, still at TIME WAIT for 60 seconds more…
> 
> I think that the problem can be the firewall, but I need confirm that[/color]

The firewall itself probably isn’t involved, though if you have set some  
settings in sysctl.conf, and then the firewall started or changed or  
anything, the re-application of the firewall settings can sometimes  
overwrite sysctl settings, thus my question about verifying the settings  
are in place with the sysctl command up above.

Out of curiosity, what is your system doing that depends on this change?

–  
Good luck.

If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below…

---

<div class="post-metadata">

### Author: ![acbarroso](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@acbarroso](https://forums.suse.com/u/acbarroso)
#### Post date: [November 17, 2016, 5:16pm UTC](https://forums.suse.com/t/time-wait/28994/3 "2016-11-17T17:16:53Z")

</div>

> [@](#):
>
> Where do you have this set? Did you make sure it is applied to the system

Yes, it was applied in the system…

> [@](#):
>
> Out of curiosity, what is your system doing that depends on this change?

The problem is that one application need to use a lot of socket of the system… if not set free can’t used again until “extra” time wait it’s over. 120 seconds it’s too much for this application

Thanks for your answer, appreciate that.
