ooni-probe-cli/internal/engine/netx/dialer
Simone Basso a3654f60b7
refactor(netxlite): add more functions to resolver (#455)
We would like to refactor the code so that a DoH resolver owns the
connections of its underlying HTTP client.

To do that, we need first to incorporate CloseIdleConnections
into the Resolver model. Then, we need to add the same function
to all netxlite types that wrap a Resolver type.

At the same time, we want the rest of the code for now to continue
with the simpler definition of a Resolver, now called ResolverLegacy.

We will eventually propagate this change to the rest of the tree
and simplify the way in which we manage Resolvers.

To make this possible, we introduce a new factory function that
adapts a ResolverLegacy to become a Resolver.

See https://github.com/ooni/probe/issues/1591.
2021-09-05 18:03:50 +02:00
..
bytecounter_test.go refactor(netxlite): hide details without breaking the rest of the tree (#454) 2021-09-05 14:49:38 +02:00
bytecounter.go refactor: move bytecounting conn in bytecounter pkg (#392) 2021-06-22 13:44:36 +02:00
dialer_test.go refactor: move dialer's errorwrapper in i/errorsx (#417) 2021-07-01 17:15:44 +02:00
dialer.go refactor(netxlite): add more functions to resolver (#455) 2021-09-05 18:03:50 +02:00
doc.go refactor(netx/dialer): hide implementation complexity (#372) 2021-06-09 09:42:31 +02:00
example_test.go refactor(netx/dialer): hide implementation complexity (#372) 2021-06-09 09:42:31 +02:00
integration_test.go refactor(netx/dialer): hide implementation complexity (#372) 2021-06-09 09:42:31 +02:00
proxy_test.go refactor(netxlite): hide details without breaking the rest of the tree (#454) 2021-09-05 14:49:38 +02:00
proxy.go refactor(netx/dialer): hide implementation complexity (#372) 2021-06-09 09:42:31 +02:00
saver_test.go refactor(netxlite): hide details without breaking the rest of the tree (#454) 2021-09-05 14:49:38 +02:00
saver.go refactor: move i/e/n/errorx to i/errorsx (#416) 2021-07-01 16:34:36 +02:00
shaping_disabled.go refactor(netxlite): hide details without breaking the rest of the tree (#454) 2021-09-05 14:49:38 +02:00
shaping_enabled.go refactor(netxlite): hide details without breaking the rest of the tree (#454) 2021-09-05 14:49:38 +02:00
shaping_test.go refactor(netx/dialer): hide implementation complexity (#372) 2021-06-09 09:42:31 +02:00