From 4cb2a29083229a13df6d8daf7ede388ab2196708 Mon Sep 17 00:00:00 2001 From: Martin Michaelis Date: Tue, 29 Aug 2023 12:45:00 +0000 Subject: [PATCH] Fix stop after EOF error condition Signed-off-by: Martin Michaelis --- pkg/client/attach.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/client/attach.go b/pkg/client/attach.go index 8f75084529..a09393c9ab 100644 --- a/pkg/client/attach.go +++ b/pkg/client/attach.go @@ -270,7 +270,7 @@ func (c *ConmonClient) redirectResponseToOutputStreams( return nil } } - if er == io.EOF || (cfg.ContainerStdin && !cfg.StopAfterStdinEOF) { + if er == io.EOF && cfg.ContainerStdin && !cfg.StopAfterStdinEOF { return nil } if errors.Is(er, syscall.ECONNRESET) {