tailscale/net
David Anderson e510abc8d0 net/dnscache: don't cancel the TLS context before writing to the result channel.
Cancelling the context makes the timeout goroutine race with the write that
reports a successful TLS handshake, so you can end up with a successful TLS
handshake that mysteriously reports that it timed out after ~0s in flight.

The context is always canceled and cleaned up as the function exits, which
happens mere microseconds later, so just let function exit clean up and
thereby avoid races.

Signed-off-by: David Anderson <danderson@tailscale.com>
(cherry picked from commit a9da6b73a8)
2022-01-13 15:02:30 -08:00
..
dns net/dns/resolver: handle tabs as whitespace when ExitDNS parses resolv.conf 2022-01-12 12:45:31 -08:00
dnscache net/dnscache: don't cancel the TLS context before writing to the result channel. 2022-01-13 15:02:30 -08:00
dnsfallback net/netns: thread logf into control functions 2021-11-18 15:09:51 -08:00
flowtrack all: use testingutil.MinAllocsPerRun 2021-10-28 12:48:37 -07:00
interfaces net/interfaces: define DefaultRouteInterface and State.DefaultRouteInterface 2021-12-29 12:13:15 -08:00
netcheck netcheck,portmapper,magicsock: ignore some UDP write errors on Linux 2021-12-31 08:27:21 -08:00
neterror net/{neterror,dns/resolver}: move PacketWasTruncated to neterror from DNS code 2022-01-03 14:03:30 -08:00
netknob all: disable TCP keep-alives on iOS/Android 2021-09-28 12:03:18 -07:00
netns net/netns: remove a useless probe of the "ip" command 2022-01-11 20:27:24 -08:00
netstat all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
nettest net/nettest: deflake TestPipeTimeout 2021-11-30 12:21:59 -08:00
packet net/packet: add ICMP6Header, like ICMP4Header 2021-12-09 09:30:10 -08:00
portmapper netcheck,portmapper,magicsock: ignore some UDP write errors on Linux 2021-12-31 08:27:21 -08:00
proxymux net/proxymux: add a listener mux that can run SOCKS and HTTP on a single socket. 2021-11-29 16:49:48 -08:00
socks5 net/tsdial: start of new package to unify all outbound dialing complexity 2021-11-30 17:21:49 -08:00
speedtest all: fix spelling mistakes 2021-10-12 21:23:14 -07:00
stun all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
tlsdial net/tlsdial: add forgotten test file for go mod tidy 2021-10-01 10:30:01 -07:00
tsaddr ipnlocal, net/{dns,tsaddr,tstun}, wgengine: support MagicDNS on IPv6 2022-01-04 14:37:22 -08:00
tsdial net/dnscache, net/tsdial: add DNS caching to tsdial UserDial 2021-12-09 11:34:21 -08:00
tshttpproxy net/tshttpproxy: use correct size for Windows BOOL argument 2021-11-22 12:24:24 -08:00
tstun ipnlocal, net/{dns,tsaddr,tstun}, wgengine: support MagicDNS on IPv6 2022-01-04 14:37:22 -08:00