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

feat(oohelperd): follow (and record) TH and probe endpoints #890

Merged
merged 15 commits into from
Aug 28, 2022

Conversation

bassosimone
Copy link
Contributor

This diff introduces the following oohelperd enhancements:

  1. measure both IP addresses resolved by the TH and IP addresses resolved by the probe;

  2. when the URL scheme is http and there's no explicit port, measure both 80 and 443 (which will pay off big once we introduce support for optionally performing TLS handshakes);

  3. include information about the probe and TH IP addresses into the results: who resolved each IP address, whether an address is a bogon, the ASN associated to an address.

This diff is part of ooni/probe#2237

1. use a 4 seconds timeout for the DNS lookup;

2. use a 10 seconds timeout for TCP;

3. use a 15 seconds timeout for HTTP.
This diff refactors the oohelperd such that we wait for the DNS to
complete before actually measuring endpoints.

This change will come in handy soon when we'll merge endpoints
provided by the client with endpoints resolved by the TH.
Rather than constraining on the expected maximum size, just
drain the channel until it becomes empty.
Conflicts:
	internal/cmd/oohelperd/measure.go
	internal/cmd/oohelperd/tcpconnect.go
@bassosimone bassosimone merged commit df0e099 into master Aug 28, 2022
@bassosimone bassosimone deleted the issue/2237 branch August 28, 2022 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant