Beam: Send: pass the underlying error unchanged to allow io.EOF detection
Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes) Upstream-commit: f94a18677a8c832d386ea96714c7e58874bb31f9 Component: engine
This commit is contained in:
@ -27,7 +27,7 @@ func Receive(conn *net.UnixConn) ([]byte, *os.File, error) {
|
||||
for {
|
||||
data, fds, err := receiveUnix(conn)
|
||||
if err != nil {
|
||||
return nil, nil, fmt.Errorf("receive: %v", err)
|
||||
return nil, nil, err
|
||||
}
|
||||
var f *os.File
|
||||
if len(fds) > 1 {
|
||||
|
||||
Reference in New Issue
Block a user