Files
tailscale/wgengine
Josh Bleecher Snyder f37cdaefa7 wgengine/magicsock: fix deadlock on shutdown
This fixes a deadlock on shutdown.
One goroutine is waiting to send on c.derpRecvCh before unlocking c.mu.
The other goroutine is waiting to lock c.mu before receiving from c.derpRecvCh.

#3736 has a more detailed explanation of the sequence of events.

Fixes #3736

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
(cherry picked from commit de4696da10)
2022-01-20 08:12:16 -08:00
..
2021-12-05 21:42:52 -08:00
2021-12-15 08:43:41 -08:00