MCPcopy Index your code
hub / github.com/coder/coder / setReadyForHandshakeTimer

Method setReadyForHandshakeTimer

tailnet/configmaps.go:746–754  ·  view source on GitHub ↗
(c *configMaps)

Source from the content-addressed store, hash-verified

744const readyForHandshakeTimeout = 5 * time.Second
745
746func (l *peerLifecycle) setReadyForHandshakeTimer(c *configMaps) {
747 if l.readyForHandshakeTimer != nil {
748 l.readyForHandshakeTimer.Stop()
749 }
750 l.readyForHandshakeTimer = c.clock.AfterFunc(readyForHandshakeTimeout, func() {
751 c.logger.Debug(context.Background(), "ready for handshake timeout", slog.F("peer_id", l.peerID))
752 c.peerReadyForHandshakeTimeout(l.peerID)
753 })
754}
755
756// validForWireguard returns true if the peer is ready to be programmed into
757// wireguard.

Callers 1

updatePeerLockedMethod · 0.80

Calls 2

StopMethod · 0.65

Tested by

no test coverage detected