Commit 9d0a2e4d authored by Mikio Hara's avatar Mikio Hara

net: fix inconsistent error values on Read for solaris

Updates #4856.

Change-Id: Ia04e24fb1fe57e244d7b1cd417f7f419ad610acd
Reviewed-on: https://go-review.googlesource.com/9776Reviewed-by: default avatarAram Hăvărneanu <aram@mgk.ro>
parent a77fcb3f
......@@ -103,5 +103,8 @@ func sendFile(c *netFD, r io.Reader) (written int64, err error, handled bool) {
if lr != nil {
lr.N = remain
}
if err != nil {
err = os.NewSyscallError("sendfile", err)
}
return written, err, written > 0
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment