MCPcopy
hub / github.com/hwholiday/learning_tools / close

Method close

istio/gateway/ws_conn.go:111–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109}
110
111func (w *WsConnection) close() {
112 w.mu.Lock()
113 defer w.mu.Unlock()
114 if w.isOpen {
115 fmt.Println("关闭链接: ", w.GetIp(), "ID", w.GetWsId())
116 _ = w.ws.Close()
117 w.isOpen = false
118 w.closeChan <- true
119 }
120}

Callers 3

readMethod · 0.95
sendMethod · 0.95
wsCloseFunction · 0.45

Calls 4

GetIpMethod · 0.95
GetWsIdMethod · 0.95
LockMethod · 0.80
CloseMethod · 0.65

Tested by

no test coverage detected