ooni-probe-cli/internal/engine/netx
Simone Basso b78b9aca51
refactor(datafmt): use "udp" instead of "quic" (#946)
This diff changes the data format to prefer "udp" to "quic" everywhere we were previously using "quic".

Previously, the code inconsistently used "quic" for operations where we knew we were using "quic" and "udp" otherwise (e.g., for generic operations like ReadFrom).

While it would be more correct to say that a specific HTTP request used "quic" rather than "udp", using "udp" consistently allows one to see how distinct events such as ReadFrom and an handshake all refer to the same address, port, and protocol triple. Therefore, this change makes it easier to programmatically unpack a single measurement and create endpoint stats.

Before implementing this change, I discussed the problem with @hellais who mentioned that ooni/data is not currently using the "quic" string anywhere. I know that ooni/pipeline also doesn't rely on this string. The only users of this feature have been research-oriented experiments such as urlgetter, for which such a change would actually be acceptable.

See https://github.com/ooni/probe/issues/2238 and https://github.com/ooni/spec/pull/262.
2022-09-08 17:19:59 +02:00
..
config.go refactor(netx): reorganize by topic (#800) 2022-06-06 14:27:25 +02:00
dialer.go refactor(netxlite): more abstract proxy-enabled dialer construction (#812) 2022-06-08 23:10:06 +02:00
dnstransport_test.go cleanup: doh.powerdns.org is not working anymore (#924) 2022-09-02 14:44:23 +02:00
dnstransport.go cleanup: doh.powerdns.org is not working anymore (#924) 2022-09-02 14:44:23 +02:00
doc.go feat: tlsping and tcpping using step-by-step (#815) 2022-07-01 12:22:22 +02:00
http_test.go refactor(netx): reorganize by topic (#800) 2022-06-06 14:27:25 +02:00
http.go refactor(datafmt): use "udp" instead of "quic" (#946) 2022-09-08 17:19:59 +02:00
integration_test.go refactor(netx): reorganize by topic (#800) 2022-06-06 14:27:25 +02:00
quic.go doc(netx): reference issue mentioning future improvements (#802) 2022-06-06 15:16:30 +02:00
resolver_test.go refactor(netx): reorganize by topic (#800) 2022-06-06 14:27:25 +02:00
resolver.go cleanup: netx does not use netxlite legacy names (#801) 2022-06-06 14:46:44 +02:00
tls_test.go refactor(netx): reorganize by topic (#800) 2022-06-06 14:27:25 +02:00
tls.go refactor(netx): reorganize by topic (#800) 2022-06-06 14:27:25 +02:00