tailscale/taildrop
Joe Tsai a8fbe284b2
taildrop: fix theoretical race condition (#9866)
WaitGroup.Wait should not be concurrently called WaitGroup.Add.
In other words, we should not start new goroutines after shutodwn is called.
Thus, add a conditional to check that shutdown has not been called
before starting off a new waitAndDelete goroutine.

Updates tailscale/corp#14772

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
2023-10-18 10:21:36 -07:00
..
delete_test.go taildrop: implement asynchronous file deletion (#9844) 2023-10-17 13:46:05 -07:00
delete.go taildrop: fix theoretical race condition (#9866) 2023-10-18 10:21:36 -07:00
resume_test.go taildrop: switch hashing to be streaming based (#9861) 2023-10-17 17:53:40 -07:00
resume.go taildrop: switch hashing to be streaming based (#9861) 2023-10-17 17:53:40 -07:00
retrieve.go taildrop: implement asynchronous file deletion (#9844) 2023-10-17 13:46:05 -07:00
send.go taildrop: implement asynchronous file deletion (#9844) 2023-10-17 13:46:05 -07:00
taildrop_test.go taildrop: implement asynchronous file deletion (#9844) 2023-10-17 13:46:05 -07:00
taildrop.go taildrop: implement asynchronous file deletion (#9844) 2023-10-17 13:46:05 -07:00