mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-11-02 09:07:33 +00:00
Merge pull request #14109 from giuseppe/ignore-econnreset
libpod: treat ECONNRESET as EOF
This commit is contained in:
commit
5c8277d943
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue