Add more timeouts to blocking calls in resolver

This commit is contained in:
Daniel
2020-08-14 11:28:55 +02:00
parent 05f57262e9
commit 4d667afd1d
4 changed files with 73 additions and 31 deletions

View File

@@ -28,9 +28,6 @@ var (
localScopes []*Scope // list of scopes with a list of local resolvers that can resolve the scope
activeResolvers map[string]*Resolver // lookup map of all resolvers
resolversLock sync.RWMutex
dupReqMap = make(map[string]*sync.WaitGroup)
dupReqLock sync.Mutex
)
func indexOfScope(domain string, list []*Scope) int {