fix(netxlite): http3 propagates CloseIdleConnections to its dialer (#471)

With this change, we are now able to change more dependent code to simplify
the way in which we create and manage resolvers.

See https://github.com/ooni/probe/issues/1591
This commit is contained in:
Simone Basso
2021-09-06 21:52:00 +02:00
committed by GitHub
parent bdad392b61
commit b9c4ad0b2b
4 changed files with 27 additions and 5 deletions
@@ -135,7 +135,8 @@ func (e *DefaultExplorer) getH3(h3URL *h3URL, headers map[string][]string) (*htt
tlsConf := &tls.Config{
NextProtos: []string{h3URL.proto},
}
transport := netxlite.NewHTTP3Transport(dialer, tlsConf)
transport := netxlite.NewHTTP3Transport(
netxlite.NewQUICDialerFromContextDialerAdapter(dialer), tlsConf)
// TODO(bassosimone): here we should use runtimex.PanicOnError
jarjar, _ := cookiejar.New(nil)
clnt := &http.Client{