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/dnsfallback
Andrew Dunham e33bc64cff net/dnsfallback: add singleflight to recursive resolver
This prevents running more than one recursive resolution for the same
hostname in parallel, which can use excessive amounts of CPU when called
in a tight loop. Additionally, add tests that hit the network (when
run with a flag) to test the lookup behaviour.

Updates tailscale/corp#15261

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: I39351e1d2a8782dd4c52cb04b3bd982eb651c81e
1 year ago
..
dns-fallback-servers.json net/netaddr: start migrating to net/netip via new netaddr adapter package 2 years ago
dnsfallback.go net/dnsfallback: add singleflight to recursive resolver 1 year ago
dnsfallback_test.go net/dnsfallback: add singleflight to recursive resolver 1 year ago
update-dns-fallbacks.go all: update copyright and license headers 2 years ago