9a19c8412446933d529eb883abcd68ea04eba92a
This function was starting a goroutine that modifies one of its return values. The intent is for the goroutine to only influence the return value when it's causing the function to return, but it's racy and can also modify the return value when the function is returning due to the timeout. Fix the goroutine to not modify return values directly. Also, give the channel a buffer so that the goroutine doesn't block forever after a timeout. Fixes #18305 Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com> Upstream-commit: 2704fd9156bfb0fb8dc16c42902bb18ea5aa94a9 Component: engine
Description
No description provided
Languages
Go
92%
Shell
5.5%
Dockerfile
1.1%
Go-Checksums
0.9%
Makefile
0.3%
Other
0.2%