You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/net/netcheck
James Tucker aa04f61d5e net/netcheck: adjust HTTPS latency check to connection time and avoid data race
The go-httpstat package has a data race when used with connections that
are performing happy-eyeballs connection setups as we are in the DERP
client. There is a long-stale PR upstream to address this, however
revisiting the purpose of this code suggests we don't really need
httpstat here.

The code populates a latency table that may be used to compare to STUN
latency, which is a lightweight RTT check. Switching out the reported
timing here to simply the request HTTP request RTT avoids the
problematic package.

Fixes tailscale/corp#25095

Signed-off-by: James Tucker <james@tailscale.com>
12 months ago
..
netcheck.go net/netcheck: adjust HTTPS latency check to connection time and avoid data race 12 months ago
netcheck_test.go cmd/tailscale,net/netcheck: add debug feature to force preferred DERP 1 year ago
standalone.go net/netns, net/dns/resolver, etc: make netmon required in most places 2 years ago