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

Method Close

ssh/tailssh/session.go:91–94  ·  view source on GitHub ↗

Close signals the session handler to return and closes the underlying channel.

()

Source from the content-addressed store, hash-verified

89
90// Close signals the session handler to return and closes the underlying channel.
91func (s *Session) Close() error {
92 s.doneOnce.Do(func() { close(s.done) })
93 return nil
94}
95
96// RemoteAddr returns the net.Addr of the client side of the connection.
97func (s *Session) RemoteAddr() net.Addr {

Callers 7

TestMultipleRecordersFunction · 0.95
TestSSHAuthFlowFunction · 0.95
ExitMethod · 0.95
testSessionForFunction · 0.95
RunMethod · 0.95

Calls 1

DoMethod · 0.65

Tested by 5

TestMultipleRecordersFunction · 0.76
TestSSHAuthFlowFunction · 0.76
testSessionForFunction · 0.76