Skip to content

Commit fa2f8c1

Browse files
committed
netstack/tcp: user timeout calc from keepalive cfg
1 parent 3bf0059 commit fa2f8c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intra/netstack/tcp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var (
3434
defaultKeepAliveInterval = tcpip.KeepaliveIntervalOption(5 * time.Second)
3535
defaultKeepAliveCount = 4 // unacknowledged probes
3636
// github.com/tailscale/tailscale/blob/65fe0ba7b5/cmd/derper/derper.go#L75-L78
37-
defaultUserTimeout = tcpip.TCPUserTimeoutOption(60 * time.Second)
37+
usrTimeout = tcpip.TCPUserTimeoutOption(10*time.Minute + (4 * 5 * time.Second))
3838
)
3939

4040
type GTCPConnHandler interface {

0 commit comments

Comments
 (0)