MCPcopy Index your code
hub / github.com/devspace-sh/devspace / Close

Method Close

helper/tunnel/session.go:30–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30func (s *Session) Close() {
31 s.cancelFunc()
32 if s.Conn != nil {
33 _ = s.Conn.Close()
34 s.Open = false
35 }
36 go func() {
37 <-time.After(5 * time.Second)
38 openSessions.Delete(s.ID)
39 }()
40}
41
42type RedirectRequest struct {
43 Source int32

Callers 1

runProxyCommandFunction · 0.95

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected