buildkit/util/flightcontrol
Tonis Tiigi e56e7ba46b flightcontrol: fix possible invalid cancellation
There was a race with context getting cancelled and new request
arriving that could resulted new request to receive cancelled result
as well. This happened because lock was held when getting the Done()
channel but it could have been already released by the time returned
channel was closed.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-12-11 00:57:12 -08:00
..
flightcontrol.go flightcontrol: fix possible invalid cancellation 2020-12-11 00:57:12 -08:00
flightcontrol_test.go flightcontrol: fix possible invalid cancellation 2020-12-11 00:57:12 -08:00