mirror of
https://github.com/containerd/containerd.git
synced 2026-11-06 05:17:02 +00:00
Race: clientStream.Send and Close both reach ttrpc's unsynchronized localClosed flag. readByteStream.window is written by the window goroutine and by Read, so make it atomic. Deadlock: Read the window by bytes copied instead of bytes received, so a short read leaves the window above windowSize. Signed-off-by: Jing Chen <milantracy@gmail.com>