tailscale/net
Andrew Dunham 3f4d51c588 net/dns: don't send on closed channel when message too large
Previously, if a DNS-over-TCP message was received while there were
existing queries in-flight, and it was over the size limit, we'd close
the 'responses' channel. This would cause those in-flight queries to
send on the closed channel and panic.

Instead, don't close the channel at all and rely on s.ctx being
canceled, which will ensure that in-flight queries don't hang.

Fixes #6725

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: I8267728ac37ed7ae38ddd09ce2633a5824320097
2022-12-13 15:54:17 -05:00
..
connstats net/connstats: invert network logging data flow (#6272) 2022-11-28 15:59:33 -08:00
dns net/dns: don't send on closed channel when message too large 2022-12-13 15:54:17 -05:00
dnscache all: update golang.zx2c4.com/wireguard to github.com/tailscale/wireguard-go (#6692) 2022-12-09 15:12:20 -08:00
dnsfallback all: remove old +build tags 2022-11-04 07:25:42 -07:00
flowtrack net/flowtrack: add json tags to Tuple (#5849) 2022-10-05 19:40:49 -07:00
interfaces all: update golang.zx2c4.com/wireguard to github.com/tailscale/wireguard-go (#6692) 2022-12-09 15:12:20 -08:00
netaddr all: migrate code from netaddr.FromStdAddr to Go 1.18 2022-08-02 22:25:07 -07:00
netcheck net/netcheck: don't use a space in the captive portal challenge 2022-11-08 16:58:54 -05: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 util/endian: delete package; use updated josharian/native instead 2022-12-12 20:12:45 -08:00
netstat util/endian: delete package; use updated josharian/native instead 2022-12-12 20:12:45 -08:00
nettest ssh/tailssh: add TestSSHAuthFlow 2022-10-09 10:27:31 -07:00
netutil all: fix spelling mistakes 2022-09-29 13:36:13 -07:00
packet all: fix spelling mistakes 2022-09-29 13:36:13 -07:00
ping all: fix spelling mistakes 2022-09-29 13:36:13 -07:00
portmapper net/portmapper: add test for Huawei router 2022-11-25 07:42:31 -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
routetable all: remove old +build tags 2022-11-04 07:25:42 -07:00
socks5 net/socks5: use new Go 1.19 binary.AppendByteOrder.AppendUintX 2022-08-05 08:30:48 -07:00
speedtest net/speedtest: retune to meet iperf on localhost in a VM 2022-09-23 10:46:04 -07:00
stun net/netcheck: deflake (maybe) magicsock's TestNewConn 2022-11-05 22:02:13 -07:00
tlsdial all: remove old +build tags 2022-11-04 07:25:42 -07:00
tsaddr net/tsaddr: remove ContainsFunc helpers (they're now in x/exp/slices) 2022-12-05 18:50:24 -08:00
tsdial all: standardize on PeerAPI 2022-11-16 22:49:13 +05:00
tshttpproxy net/tshttpproxy: don't ignore env-based HTTP proxies after system lookups fail 2022-11-14 09:11:33 -08:00
tstun all: update golang.zx2c4.com/wireguard to github.com/tailscale/wireguard-go (#6692) 2022-12-09 15:12:20 -08:00
wsconn net/wsconn: add back custom wrapper for turning a websocket.Conn into a net.Conn 2022-10-18 15:39:32 -07:00