Skip to content

Commit 085c7fb

Browse files
intra/ipn: turn off TCP keepalive by default
1 parent c646f0c commit 085c7fb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

intra/ipn/auto.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,5 +497,9 @@ func maybeKeepAlive(c net.Conn) {
497497
if settings.GetDialerOpts().LowerKeepAlive {
498498
// adjust TCP keepalive config if c is a TCPConn
499499
core.SetKeepAliveConfigSockOpt(c)
500+
} else {
501+
if tcpConn, ok := c.(*net.TCPConn); ok {
502+
tcpConn.SetKeepAlive(false)
503+
}
500504
}
501505
}

0 commit comments

Comments
 (0)