You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
1 year ago
..
delete.go taildrop: fix theoretical race condition (#9866) 1 year ago
delete_test.go taildrop: implement asynchronous file deletion (#9844) 1 year ago
resume.go taildrop: switch hashing to be streaming based (#9861) 1 year ago
resume_test.go taildrop: switch hashing to be streaming based (#9861) 1 year ago
retrieve.go taildrop: implement asynchronous file deletion (#9844) 1 year ago
send.go taildrop: implement asynchronous file deletion (#9844) 1 year ago
taildrop.go taildrop: implement asynchronous file deletion (#9844) 1 year ago
taildrop_test.go taildrop: implement asynchronous file deletion (#9844) 1 year ago