Merge pull request #14109 from giuseppe/ignore-econnreset

libpod: treat ECONNRESET as EOF
This commit is contained in:
OpenShift Merge Robot 2022-05-04 13:12:13 -04:00 • committed by GitHub
commit 5c8277d943
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,7 @@ import (
"net"
"os"
"path/filepath"
"syscall"
"github.com/containers/common/pkg/config"
"github.com/containers/podman/v4/libpod/define"
@ -259,7 +260,7 @@ func redirectResponseToOutputStreams(outputStream, errorStream io.Writer, writeO
}
}
}
if er == io.EOF {
if errors.Is(er, io.EOF) || errors.Is(er, syscall.ECONNRESET) {
break
}
if er != nil {