Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dnscheck): avoid false positive due to timeout #1160

Merged
merged 2 commits into from
Dec 26, 2020
Merged

Conversation

bassosimone
Copy link
Member

  1. avoid setting a unique timeout for the whole measurement

  2. set a 20 seconds timeout for the bootstrap

  3. use up to 10 concurrent goroutines for the lookups

  4. set a 45 seconds timeout for each individual lookup

  5. urlgetter/getter.go: introduce a timeout (for now do not
    expose it to command line since that is more work)

  6. urlgetter/urlgetter.go: use the new timeout in getter.go

  7. urlgetter/getter.go: add tests for the timeout case

See #1159

1. avoid setting a unique timeout for the whole measurement

2. set a 20 seconds timeout for the bootstrap

3. use up to 10 concurrent goroutines for the lookups

4. set a 45 seconds timeout for each individual lookup

5. urlgetter/getter.go: introduce a timeout (for now do not
expose it to command line since that is more work)

6. urlgetter/urlgetter.go: use the new timeout in getter.go

7. urlgetter/getter.go: add tests for the timeout case

See #1159
@bassosimone bassosimone merged commit 9ceff7c into master Dec 26, 2020
@bassosimone bassosimone deleted the issue/1159 branch December 26, 2020 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant