mirror of
https://github.com/containerd/containerd.git
synced 2026-11-06 21:37:23 +00:00
The monitor goroutine (runs (*ContainerIO).Attach.func1) of Attach will
never finish if it attaches to a container without any stdout or stderr
output. Wait for http context cancel and break the pipe actively to
address the issue.
Signed-off-by: wheat2018 <1151937289@qq.com>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
(cherry picked from commit a0d0f0ef68)
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>