Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
111
func
(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
read
Method · 0.95
send
Method · 0.95
wsClose
Function · 0.45
Calls
4
GetIp
Method · 0.95
GetWsId
Method · 0.95
Lock
Method · 0.80
Close
Method · 0.65
Tested by
no test coverage detected