mirror of
https://github.com/tailscale/tailscale.git
synced 2026-05-30 11:35:32 -04:00
@amalscale points out that we already have pingTimeout in magicsock, so I’ve extracted the default out as a tsconst. Signed-off-by: Simon Law <sfllaw@tailscale.com>
17 lines
401 B
Go
17 lines
401 B
Go
// Copyright (c) Tailscale Inc & contributors
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
package tsconst
|
|
|
|
import "time"
|
|
|
|
const (
|
|
// DefaultPingTimeout is the default time we wait for a pong reply
|
|
// before assuming it's never coming.
|
|
DefaultPingTimeout = 5 * time.Second
|
|
|
|
// DefaultPingInterval is the default minimum time
|
|
// between pings to an endpoint.
|
|
DefaultPingInterval = 5 * time.Second
|
|
)
|