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/tstest/natlab
Jordan Whited 3d1e4f147a
tstest/natlab: fix conn.Close race with conn.ReadFromUDPAddrPort (#16710)
If a conn.Close call raced conn.ReadFromUDPAddrPort before it could
"register" itself as an active read, the conn.ReadFromUDPAddrPort would
never return.

This commit replaces all the activeRead and breakActiveReads machinery
with a channel. These constructs were only depended upon by
SetReadDeadline, and SetReadDeadline was unused.

Updates #16707

Signed-off-by: Jordan Whited <jordan@tailscale.com>
4 months ago
..
vnet net/{netx,memnet},all: add netx.DialFunc, move memnet Network impl 8 months ago
firewall.go all: update copyright and license headers 3 years ago
nat.go all: update copyright and license headers 3 years ago
natlab.go tstest/natlab: fix conn.Close race with conn.ReadFromUDPAddrPort (#16710) 4 months ago
natlab_test.go all: use Go 1.22 range-over-int 2 years ago