refactor(netxlite): allow easy dialer chain customization (#770)
This diff modifies the construction of a dialer to allow one to insert custom dialer wrappers into the dialers chain. The point of the chain in which we allow custom wrappers is the optimal one for connect, read, and write measurements. This new design is better than the previous netx design since we don't need to construct the whole chain manually now. The work in this diff is part of the effort to make engine/netx just a tiny wrapper around netxlite. See https://github.com/ooni/probe/issues/2121.
This commit is contained in:
parent
e4f10eeac2
commit
69fd0c5119
10 changed files with 174 additions and 111 deletions
|
|
@ -79,7 +79,7 @@ func NewQUICDialerWithResolver(listener model.QUICListener,
|
|||
// an address containing a domain name, the dial will fail with
|
||||
// the ErrNoResolver failure.
|
||||
func NewQUICDialerWithoutResolver(listener model.QUICListener, logger model.DebugLogger) model.QUICDialer {
|
||||
return NewQUICDialerWithResolver(listener, logger, &nullResolver{})
|
||||
return NewQUICDialerWithResolver(listener, logger, &NullResolver{})
|
||||
}
|
||||
|
||||
// quicDialerQUICGo dials using the lucas-clemente/quic-go library.
|
||||
|
|
|
|||
Loading…
Reference in a new issue