TCP负载均衡实现流量限制,达到限制后,关闭连接

This commit is contained in:
刘祥超
2022-06-17 21:49:15 +08:00
parent 6d642b75f6
commit 4c4033bb56
3 changed files with 55 additions and 17 deletions

View File

@@ -210,6 +210,7 @@ func (this *HTTPCacheTaskManager) processKey(key *pb.HTTPCacheTaskKey) error {
}
// TODO 增加失败重试
// TODO 使用并发操作
func (this *HTTPCacheTaskManager) fetchKey(key *pb.HTTPCacheTaskKey) error {
var fullKey = key.Key
if !this.protocolReg.MatchString(fullKey) {