MCPcopy Create free account
hub / github.com/tailscale/tailcat / Close

Method Close

tailcat.go:538–543  ·  view source on GitHub ↗

Close shuts down the server, closing the WireGuard engine and DERP connections.

()

Source from the content-addressed store, hash-verified

536
537// Close shuts down the server, closing the WireGuard engine and DERP connections.
538func (s *Server) Close() error {
539 if s.lb == nil {
540 return nil // never started
541 }
542 return s.lb.Close()
543}
544
545// DrainTCP waits until every TCP connection in the server's netstack
546// has fully closed, meaning the peer has acknowledged all sent data

Callers 15

setupSSHEnvFunction · 0.95
TestTailcatFunction · 0.95
TestHalfCloseFunction · 0.95
TestPipeModeFunction · 0.95
TestSOCKSClientKeyFunction · 0.95
TestHandlerFunction · 0.95
TestBrowserSendsFunction · 0.95
TestBrowserSendsTextUIFunction · 0.95
tailcatListenFunction · 0.95
CloseMethod · 0.45

Calls

no outgoing calls

Tested by 12

setupSSHEnvFunction · 0.76
TestTailcatFunction · 0.76
TestHalfCloseFunction · 0.76
TestPipeModeFunction · 0.76
TestSOCKSClientKeyFunction · 0.76
TestHandlerFunction · 0.76
TestBrowserSendsFunction · 0.76
TestBrowserSendsTextUIFunction · 0.76
sshClientMethod · 0.36
TestSSHSuiteFunction · 0.36