MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / isClientConnClosed

Function isClientConnClosed

internal/nodes/client_conn_utils.go:10–20  ·  view source on GitHub ↗

判断客户端连接是否已关闭

(conn net.Conn)

Source from the content-addressed store, hash-verified

8
9// 判断客户端连接是否已关闭
10func isClientConnClosed(conn net.Conn) bool {
11 if conn == nil {
12 return true
13 }
14 clientConn, ok := conn.(ClientConnInterface)
15 if ok {
16 return clientConn.IsClosed()
17 }
18
19 return true
20}

Callers 1

isConnClosedMethod · 0.85

Calls 1

IsClosedMethod · 0.65

Tested by

no test coverage detected