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

Method CloseAll

tailnet/test/integration/integration.go:146–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144}
145
146func (c *connManager) CloseAll() {
147 c.mu.Lock()
148 defer c.mu.Unlock()
149 for _, conn := range c.conns {
150 _ = conn.Close()
151 }
152 c.conns = make(map[uuid.UUID]net.Conn)
153}
154
155type derpServer struct {
156 http.Handler

Callers 1

RouterMethod · 0.95

Calls 3

CloseMethod · 0.65
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected