Skip to content

Commit

Permalink
sysctls.go: Fix some comments
Browse files Browse the repository at this point in the history
Comment for net.ipv4.tcp_tw_reuse from tcp(7).
  • Loading branch information
eest authored and Patrik Lundin committed Nov 13, 2019
1 parent b550db2 commit ad9448a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nodeup/pkg/model/sysctls.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
"",

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

Expand Down

0 comments on commit ad9448a

Please sign in to comment.