feat(webconnectivity@v0.5): flag case where noone resolved any address (#953)
See https://github.com/ooni/probe/issues/2290 While there, notice that in such a case the priority selector would hang because of the WaitGroup, so get rid of the WaitGroup and accept that the priority selector is going to hang around for the whole duration of the measurement in some cases. The cancellable `measurer.go`'s context will cause the priority selector to eventually exit when we return from `measurer.go`'s `Run` method.
This commit is contained in:
parent
449b981f7f
commit
b10eea47e7
5 changed files with 72 additions and 11 deletions
|
|
@ -172,7 +172,7 @@ func (t *DNSResolvers) Run(parentCtx context.Context) {
|
|||
}
|
||||
|
||||
// create priority selector
|
||||
ps := newPrioritySelector(parentCtx, t.ZeroTime, t.TestKeys, t.Logger, t.WaitGroup, addresses)
|
||||
ps := newPrioritySelector(parentCtx, t.ZeroTime, t.TestKeys, t.Logger, addresses)
|
||||
|
||||
// fan out a number of child async tasks to use the IP addrs
|
||||
t.startCleartextFlows(parentCtx, ps, addresses)
|
||||
|
|
|
|||
Loading…
Reference in a new issue