MCPcopy
hub / github.com/kubeedge/kubeedge / DeleteLocalConnection

Method DeleteLocalConnection

edge/pkg/edgestream/tunnel.go:214–224  ·  view source on GitHub ↗
(id uint64)

Source from the content-addressed store, hash-verified

212}
213
214func (s *TunnelSession) DeleteLocalConnection(id uint64) {
215 s.localConsLock.Lock()
216 defer s.localConsLock.Unlock()
217 con, ok := s.localCons[id]
218 if !ok {
219 return
220 }
221 con.CleanChannel()
222 con.CloseReadChannel()
223 delete(s.localCons, id)
224}

Callers 1

ServeConnectionMethod · 0.95

Calls 4

UnlockMethod · 0.80
CleanChannelMethod · 0.65
CloseReadChannelMethod · 0.65
LockMethod · 0.45

Tested by

no test coverage detected