实现请求连接数等限制

This commit is contained in:
刘祥超
2021-12-12 11:48:01 +08:00
parent bb5fa38613
commit e5f9316e33
20 changed files with 632 additions and 86 deletions

View File

@@ -621,6 +621,15 @@ func (this *Node) listenSock() error {
"result": result,
},
})
case "conns":
ipConns, serverConns := sharedClientConnLimiter.Conns()
_ = cmd.Reply(&gosock.Command{
Params: map[string]interface{}{
"ipConns": ipConns,
"serverConns": serverConns,
},
})
}
})