MCPcopy Index your code
hub / github.com/tailscale/tailscale / Shutdown

Method Shutdown

ssh/tailssh/tailssh.go:183–191  ·  view source on GitHub ↗

Shutdown terminates all active sessions.

()

Source from the content-addressed store, hash-verified

181
182// Shutdown terminates all active sessions.
183func (srv *server) Shutdown() {
184 srv.mu.Lock()
185 srv.shutdownCalled = true
186 for c := range srv.activeConns {
187 c.Close()
188 }
189 srv.mu.Unlock()
190 srv.sessionWaitGroup.Wait()
191}
192
193// OnPolicyChange terminates any active sessions that no longer match
194// the SSH access policy.

Calls 4

LockMethod · 0.65
CloseMethod · 0.65
UnlockMethod · 0.65
WaitMethod · 0.65

Tested by 4

TestMultipleRecordersFunction · 0.76
TestSSHAuthFlowFunction · 0.76