sysctls.go: Fix some comments

Comment for net.ipv4.tcp_tw_reuse from tcp(7).
This commit is contained in:
Patrik Lundin 2019-11-13 12:58:21 +01:00 committed by Patrik Lundin
parent b550db283c
commit ad9448ac40
1 changed files with 3 additions and 2 deletions

View File

@ -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",
"",