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

This commit is contained in:
GoEdgeLab
2022-06-17 21:49:15 +08:00
parent 8c06d648bf
commit 3dc540d8a8
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) {