Skip to content

Commit

Permalink
martian: dont set tcp keep alive
Browse files Browse the repository at this point in the history
Forwarder uses OS TCP keep alive settings, added in 57d08e8.
  • Loading branch information
Choraden authored and mmatczuk committed Jan 12, 2024
1 parent 991263e commit 5c3c0ac
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/martian/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,6 @@ func (p *Proxy) Serve(l net.Listener) error {
delay = 0
log.Debugf(context.TODO(), "accepted connection from %s", conn.RemoteAddr())

if tconn, ok := conn.(*net.TCPConn); ok {
tconn.SetKeepAlive(true)
tconn.SetKeepAlivePeriod(3 * time.Minute)
}

go p.handleLoop(conn)
}
}
Expand Down

0 comments on commit 5c3c0ac

Please sign in to comment.