]> Cypherpunks repositories - gostls13.git/commit
net: return poll.SendFile error from sendFile
authorIan Lance Taylor <iant@golang.org>
Fri, 1 Mar 2019 15:12:24 +0000 (07:12 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 1 Mar 2019 22:15:57 +0000 (22:15 +0000)
commit412f659280607b06de9b25569cf668ea8f23dd57
treec81339fe5a18a334abfb7eb08e6d14715c6979e8
parent7dc3d9f85f424445a49577aad33e576992c1f67d
net: return poll.SendFile error from sendFile

We were accidentally ignoring any error returned by poll.SendFile.
Noticed by reading the code. It could only change behavior if the
sendfile system call both wrote some bytes and returned an error.

Change-Id: I0693d6ec0a30f5a86b78d38793899ca29fb9e156
Reviewed-on: https://go-review.googlesource.com/c/164760
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/sendfile_linux.go
src/net/sendfile_unix_alt.go