MCPcopy Index your code
hub / github.com/docker/cli / closeAllConns

Method closeAllConns

cli-plugins/socket/socket.go:113–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111}
112
113func (pl *PluginServer) closeAllConns() {
114 pl.mu.Lock()
115 defer pl.mu.Unlock()
116
117 if pl.closed {
118 return
119 }
120
121 // Prevent new connections from being accepted.
122 pl.closed = true
123
124 for _, conn := range pl.conns {
125 conn.Close()
126 }
127
128 pl.conns = nil
129}
130
131func randomID() string {
132 b := make([]byte, 16)

Callers 1

CloseMethod · 0.95

Calls 1

CloseMethod · 0.45

Tested by

no test coverage detected