refactor: move base http3 transport into netxlite (#412)
This diff is part of https://github.com/ooni/probe/issues/1505. You will notice that I have not adapted all the (great) tests we had previously. They should live at another layer, and namely the one that deals with performing measurements. When I'm refactoring such a layer I'll ensure those tests that I have not adapted here are reintroduced into the tree.
This commit is contained in:
parent
527e1a0707
commit
4dc2907472
6 changed files with 87 additions and 196 deletions
|
|
@ -54,7 +54,7 @@ type Dialer interface {
|
|||
|
||||
// QUICDialer is the definition of a dialer for QUIC assumed by this package.
|
||||
type QUICDialer interface {
|
||||
Dial(network, addr string, tlsCfg *tls.Config, cfg *quic.Config) (quic.EarlySession, error)
|
||||
DialContext(ctx context.Context, network, addr string, tlsCfg *tls.Config, cfg *quic.Config) (quic.EarlySession, error)
|
||||
}
|
||||
|
||||
// TLSDialer is the definition of a TLS dialer assumed by this package.
|
||||
|
|
@ -175,8 +175,7 @@ func NewQUICDialer(config Config) QUICDialer {
|
|||
d = quicdialer.HandshakeSaver{Saver: config.TLSSaver, Dialer: d}
|
||||
}
|
||||
d = &netxlite.QUICDialerResolver{Resolver: config.FullResolver, Dialer: d}
|
||||
var dialer QUICDialer = &httptransport.QUICWrapperDialer{Dialer: d}
|
||||
return dialer
|
||||
return d
|
||||
}
|
||||
|
||||
// NewTLSDialer creates a new TLSDialer from the specified config
|
||||
|
|
|
|||
Loading…
Reference in a new issue