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
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
..
art
connstats
dns net/dns/resolver: race UDP and TCP queries (#9544) 1 year ago
dnscache
dnsfallback net/dnsfallback: remove net/dnsfallback go:generate line 1 year ago
flowtrack
interfaces net/tsdial: be smarter about when to close SystemDial conns 1 year ago
memnet net/memnet: export the network name (#9111) 1 year ago
netaddr
netcheck
neterror
netknob
netmon net/netmon: log when the gateway/self IP changes 1 year ago
netns net/{interfaces,netmon}: remove "interesting", EqualFiltered API 1 year ago
netstat
netutil
packet net/packet: implement methods for rewriting v6 addresses 1 year ago
ping net/ping: fix ICMP echo code field to 0 1 year ago
portmapper net/portmapper: fix invalid UPnP metric name 1 year ago
proxymux
routetable
socks5
sockstats net/dns: retry forwarder requests over TCP 1 year ago
speedtest
stun
tcpinfo
tlsdial
tsaddr types/netmap: remove NetworkMap.{Addresses,MachineStatus} 1 year ago
tsdial types/netmap: remove NetworkMap.{Addresses,MachineStatus} 1 year ago
tshttpproxy
tstun net/tstun: remove unused function DefaultMTU() 1 year ago
wsconn net/wsconn: accept a remote addr string and plumb it through 1 year ago