moby / buildkit

concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit
https://github.com/moby/moby/issues/34227
Apache License 2.0
8.09k stars 1.14k forks source link

util/resolver: Make httpFallback concurrent safe #5044

Closed vvoland closed 3 months ago

vvoland commented 3 months ago

The httpFallback mutates the host field, which needs a synchronization when the same httpFallback is used by multiple goroutines. This is happens with containerd push which uses Dispatch to walk the image recursively to push every blob.