From ad9448ac4078a67830ed5dad5e71f5aef3a01d40 Mon Sep 17 00:00:00 2001 From: Patrik Lundin Date: Wed, 13 Nov 2019 12:58:21 +0100 Subject: [PATCH] sysctls.go: Fix some comments Comment for net.ipv4.tcp_tw_reuse from tcp(7). --- nodeup/pkg/model/sysctls.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nodeup/pkg/model/sysctls.go b/nodeup/pkg/model/sysctls.go index 2e33bd1df4..eb96bc2c0c 100644 --- a/nodeup/pkg/model/sysctls.go +++ b/nodeup/pkg/model/sysctls.go @@ -70,7 +70,7 @@ func (b *SysctlBuilder) Build(c *fi.ModelBuilderContext) error { "net.core.rmem_max = 16777216", "", - "# Default Socket Send Buffer", + "# Maximum Socket Send Buffer", "net.core.wmem_max = 16777216", "", @@ -87,7 +87,8 @@ func (b *SysctlBuilder) Build(c *fi.ModelBuilderContext) error { "net.ipv4.tcp_slow_start_after_idle = 0", "", - "# Increase the tcp-time-wait buckets pool size to prevent simple DOS attacks", + "# Allow to reuse TIME_WAIT sockets for new connections", + "# when it is safe from protocol viewpoint", "net.ipv4.tcp_tw_reuse = 1", "",