节点IP阈值增加节点健康检查失败

This commit is contained in:
刘祥超
2021-11-18 14:30:58 +08:00
parent 422b71d9b1
commit 886969f4ee
2 changed files with 18 additions and 10 deletions

View File

@@ -177,6 +177,7 @@ func (this *ServerAddressGroup) MatchServerName(serverName string) *ServerConfig
this.cacheLocker.Lock()
// 限制缓存的最大尺寸,防止内存耗尽
// TODO 清理20%比较老的数据
if this.countCacheDomains < 1_000_000 {
domainMap, ok := this.cacheDomainMap[prefix]
if ok {