diff options
| author | Josh Bleecher Snyder <josh@tailscale.com> | 2021-07-07 15:45:00 -0700 |
|---|---|---|
| committer | Josh Bleecher Snyder <josharian@gmail.com> | 2021-07-07 16:15:29 -0700 |
| commit | 0ad92b89a63f21ccb741a1e7173b3d5eb9afa687 (patch) | |
| tree | 1152446fa9ac58a8fde7c063d2a221fb70a9d39a /control/controlknobs | |
| parent | 7d417586a8d5023b67b14a6037815d7a58359af7 (diff) | |
| download | tailscale-0ad92b89a63f21ccb741a1e7173b3d5eb9afa687.tar.xz tailscale-0ad92b89a63f21ccb741a1e7173b3d5eb9afa687.zip | |
net/tstun: fix data races
To remove some multi-case selects, we intentionally allowed
sends on closed channels (cc23049cd286f137536d011b7840b3be5fdc8cb4).
However, we also introduced concurrent sends and closes,
which is a data race.
This commit fixes the data race. The mutexes here are uncontended,
and thus very cheap.
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
Diffstat (limited to 'control/controlknobs')
0 files changed, 0 insertions, 0 deletions
