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/cmd/tailscaled
Andrew Dunham 286c6ce27c
net/dns/resolver: race UDP and TCP queries (#9544)
Instead of just falling back to making a TCP query to an upstream DNS
server when the UDP query returns a truncated query, also start a TCP
query in parallel with the UDP query after a given race timeout. This
ensures that if the upstream DNS server does not reply over UDP (or if
the response packet is blocked, or there's an error), we can still make
queries if the server replies to TCP queries.

This also adds a new package, util/race, to contain the logic required for
racing two different functions and returning the first non-error answer.

Updates tailscale/corp#14809

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: I4311702016c1093b1beaa31b135da1def6d86316
1 year ago
..
childproc all: update copyright and license headers 2 years ago
debug.go net/netmon: make ChangeFunc's signature take new ChangeDelta, not bool 1 year ago
depaware.txt net/dns/resolver: race UDP and TCP queries (#9544) 1 year ago
generate.go cmd/mkmanifest, cmd/tailscale, cmd/tailscaled: remove Windows arm32 resources from OSS 2 years ago
install_darwin.go all: update copyright and license headers 2 years ago
install_windows.go all: update copyright and license headers 2 years ago
manifest_windows_386.syso cmd/{tailscale,tailscaled}: embed manifest into Windows binaries 2 years ago
manifest_windows_amd64.syso cmd/{tailscale,tailscaled}: embed manifest into Windows binaries 2 years ago
manifest_windows_arm64.syso cmd/{tailscale,tailscaled}: embed manifest into Windows binaries 2 years ago
proxy.go all: update copyright and license headers 2 years ago
required_version.go all: require Go 1.21 1 year ago
sigpipe.go all: adjust some build tags for plan9 1 year ago
ssh.go all: update copyright and license headers 2 years ago
taildrop.go various: add detection and Taildrop for Unraid 2 years ago
tailscaled.defaults cmd/tailscaled: rename relaynode reference in defaults file comment 5 years ago
tailscaled.go wgengine, proxymap: split out port mapping from Engine to new type 1 year ago
tailscaled.openrc tstest/integration/vms: use an in-process logcatcher (#2360) 3 years ago
tailscaled.service cmd/tailscaled: use explicit equal sign in --port=$PORT in tailscaled.service 2 years ago
tailscaled_bird.go all: update copyright and license headers 2 years ago
tailscaled_notwindows.go all: update copyright and license headers 2 years ago
tailscaled_test.go util/linuxfw: remove yet-unused code to fix linux/arm64 crash 1 year ago
tailscaled_windows.go util/syspolicy: add read boolean setting (#9592) 1 year ago
windows-manifest.xml cmd/{tailscale,tailscaled}: embed manifest into Windows binaries 2 years ago
with_cli.go all: update copyright and license headers 2 years ago