File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -170,10 +170,14 @@ func (g *GTCPConn) synack(complete bool) (rst bool, err error) {
170
170
171
171
func keepalive (ep tcpip.Endpoint ) {
172
172
if settings .GetDialerOpts ().LowerKeepAlive {
173
- sockopt (ep , & defaultKeepAliveIdle , & defaultKeepAliveInterval , & defaultUserTimeout )
173
+ // github.com/tailscale/tailscale/issues/4522 (low keepalive)
174
+ // github.com/tailscale/tailscale/pull/6147 (high keepalive)
175
+ // github.com/tailscale/tailscale/issues/6148 (other changes)
176
+ sockopt (ep , & defaultKeepAliveIdle , & defaultKeepAliveInterval , & usrTimeout )
174
177
ep .SetSockOptInt (tcpip .KeepaliveCountOption , defaultKeepAliveCount )
175
- ep .SocketOptions ().SetKeepAlive (true )
176
178
}
179
+ // github.com/tailscale/tailscale/commit/1aa75b1c9ea2
180
+ ep .SocketOptions ().SetKeepAlive (true ) // applies netstack defaults
177
181
}
178
182
179
183
func sockopt (ep tcpip.Endpoint , opts ... tcpip.SettableSocketOption ) {
You can’t perform that action at this time.
0 commit comments