MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / isConnClosed

Method isConnClosed

internal/nodes/http_request.go:2043–2055  ·  view source on GitHub ↗

检查连接是否已关闭

()

Source from the content-addressed store, hash-verified

2041
2042// 检查连接是否已关闭
2043func (this *HTTPRequest) isConnClosed() bool {
2044 var requestConn = this.RawReq.Context().Value(HTTPConnContextKey)
2045 if requestConn == nil {
2046 return true
2047 }
2048
2049 conn, ok := requestConn.(net.Conn)
2050 if ok {
2051 return isClientConnClosed(conn)
2052 }
2053
2054 return true
2055}

Callers 2

doOriginRequestMethod · 0.95
doWAFRequestMethod · 0.95

Calls 2

isClientConnClosedFunction · 0.85
ContextMethod · 0.80

Tested by

no test coverage detected