MCPcopy Create free account
hub / github.com/V2RaySSR/RealityChecker / NewConnectionManager

Function NewConnectionManager

internal/network/manager.go:41–52  ·  view source on GitHub ↗

NewConnectionManager 创建连接管理器

(config *types.Config)

Source from the content-addressed store, hash-verified

39
40// NewConnectionManager 创建连接管理器
41func NewConnectionManager(config *types.Config) *ConnectionManager {
42 return &ConnectionManager{
43 config: config,
44 httpConnections: make(map[string]*HTTPConnectionPool),
45 tlsConnections: make(map[string]*TLSConnectionPool),
46 stats: &types.ConnectionStats{
47 ActiveConnections: 0,
48 TotalConnections: 0,
49 FailedConnections: 0,
50 },
51 }
52}
53
54// Start 启动连接管理器
55func (cm *ConnectionManager) Start() error {

Callers 1

NewEngineFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected