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

Function NewClientConnLimiter

internal/nodes/client_conn_limiter.go:27–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27func NewClientConnLimiter() *ClientConnLimiter {
28 return &ClientConnLimiter{
29 remoteAddrMap: map[string]*ClientConnRemoteAddr{},
30 ipConns: map[string]map[string]zero.Zero{},
31 serverConns: map[int64]map[string]zero.Zero{},
32 }
33}
34
35// Add 添加新连接
36// 返回值为true的时候表示允许添加;否则表示不允许添加

Callers 2

Calls

no outgoing calls

Tested by 1