mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-03-21 15:05:36 +08:00
修复查找域名对应服务时可能造成的死锁
This commit is contained in:
@@ -157,6 +157,7 @@ func (this *ServerAddressGroup) MatchServerName(serverName string) *ServerConfig
|
||||
if ok {
|
||||
server, ok := domainMap[serverName]
|
||||
if ok {
|
||||
this.cacheLocker.RUnlock()
|
||||
return server
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user