aboutsummaryrefslogtreecommitdiff
path: root/device/device_test.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josh@tailscale.com>2020-12-14 13:34:03 -0800
committerJason A. Donenfeld <Jason@zx2c4.com>2021-01-07 14:49:44 +0100
commitfc0aabbae94f8da498c8fab89b833b4e7a3abab6 (patch)
treeeeb2983913169f87e129d1e7cd295bd0efde49c6 /device/device_test.go
parentc9e4a859ae8cdd7046a467afe8b50c5364c2cfc7 (diff)
downloadwireguard-go-fc0aabbae94f8da498c8fab89b833b4e7a3abab6.tar.gz
wireguard-go-fc0aabbae94f8da498c8fab89b833b4e7a3abab6.zip
device: prevent spurious errors while closing a device
When closing a device, packets that are in flight can make it to SendBuffer, which then returns an error. Those errors add noise but no light; they do not reflect an actual problem. Adding the synchronization required to prevent this from occurring is currently expensive and error-prone. Instead, quietly drop such packets instead of returning an error. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
Diffstat (limited to 'device/device_test.go')
0 files changed, 0 insertions, 0 deletions