diff options
| author | Jordan Whited <jordan@tailscale.com> | 2025-07-29 14:58:47 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-29 14:58:47 -0700 |
| commit | 3d1e4f147afb7359061dde08c270a37032fe5aef (patch) | |
| tree | 0e8095bfe50309d78e18994f7ae5b5dc8f68b285 /control/controlknobs/controlknobs.go | |
| parent | e37432afb7acb012576b8df483d31492317b790b (diff) | |
| download | tailscale-3d1e4f147afb7359061dde08c270a37032fe5aef.tar.xz tailscale-3d1e4f147afb7359061dde08c270a37032fe5aef.zip | |
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>
Diffstat (limited to 'control/controlknobs/controlknobs.go')
0 files changed, 0 insertions, 0 deletions
