mirror of
https://github.com/moby/moby.git
synced 2026-08-09 17:39:58 +00:00
The UDP proxy used by cmd/docker-proxy is executing Write and Close in two separate goroutines, such that a Close could interrupt an in-flight Write. Introduce a `connTrackEntry` that wraps a `net.Conn` and a `sync.Mutex` to ensure that Write and Close are serialized. Signed-off-by: Albin Kerouanton <albinker@gmail.com>