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

Method Close

internal/nodes/client_conn.go:221–234  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

219}
220
221func (this *ClientConn) Close() error {
222 this.isClosed = true
223
224 err := this.rawConn.Close()
225
226 // 单个服务并发数限制
227 // 不能加条件限制,因为服务配置随时有变化
228 sharedClientConnLimiter.Remove(this.rawConn.RemoteAddr().String())
229
230 // 从conn map中移除
231 conns.SharedMap.Remove(this)
232
233 return err
234}
235
236func (this *ClientConn) LocalAddr() net.Addr {
237 return this.rawConn.LocalAddr()

Callers 3

WriteMethod · 0.95
increaseSYNFloodMethod · 0.95
TestEndpointsMethod · 0.95

Calls 4

CloseMethod · 0.65
RemoveMethod · 0.65
StringMethod · 0.45
RemoteAddrMethod · 0.45

Tested by

no test coverage detected