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)
This commit is contained in:
parent
f4c6f14d0a
commit
bccd390ead
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue