ooni-probe-cli/internal/cmd/oohelperd/internal/webconnectivity
Simone Basso a4d17085f5
fix(oohelperd): use throw-away HTTPClient, Dialer, Resolver (#833)
This diff modifies the implementation of oohelperd in the master branch
to always use throw-away HTTPClient, Dialer, and Resolver.

The rationale of this change is to ensure we're not hitting limits of the
HTTPClient regarding the max number of connections per host.

This issue is described at https://github.com/ooni/probe/issues/2182.

While there, it feels more correct to use throw-away Dialer and Resolver.

We have a different patch for the release/3.15 branch because of
netx-related refactorings: https://github.com/ooni/probe-cli/pull/832.
2022-07-05 18:41:35 +02:00
..
dns_test.go fix(oohelperd): use throw-away HTTPClient, Dialer, Resolver (#833) 2022-07-05 18:41:35 +02:00
dns.go fix(oohelperd): use throw-away HTTPClient, Dialer, Resolver (#833) 2022-07-05 18:41:35 +02:00
fake_test.go feat(netxlite): implements NS queries (#734) 2022-05-16 10:46:53 +02:00
http_test.go fix(oohelperd): use throw-away HTTPClient, Dialer, Resolver (#833) 2022-07-05 18:41:35 +02:00
http.go fix(oohelperd): use throw-away HTTPClient, Dialer, Resolver (#833) 2022-07-05 18:41:35 +02:00
measure.go fix(oohelperd): use throw-away HTTPClient, Dialer, Resolver (#833) 2022-07-05 18:41:35 +02:00
tcpconnect_test.go fix(oohelperd): reduce errors to what the old TH would emit (#543) 2021-10-13 16:37:02 +02:00
tcpconnect.go fix(oohelperd): use throw-away HTTPClient, Dialer, Resolver (#833) 2022-07-05 18:41:35 +02:00
webconnectivity_test.go fix(oohelperd): use throw-away HTTPClient, Dialer, Resolver (#833) 2022-07-05 18:41:35 +02:00
webconnectivity.go fix(oohelperd): use throw-away HTTPClient, Dialer, Resolver (#833) 2022-07-05 18:41:35 +02:00