diff options
| author | Shawn Walker-Salas <shawn.walker@oracle.com> | 2016-04-08 15:59:04 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-04-12 19:00:46 +0000 |
| commit | 98080a6c64c2d9bc2a759b66a9b861af4ef7367b (patch) | |
| tree | bf486e483620060bd181d7280ef81cc437592842 /src/cmd/internal | |
| parent | b1851a3c11a179d4eb55f9d0dd25ef81668a9f81 (diff) | |
| download | go-98080a6c64c2d9bc2a759b66a9b861af4ef7367b.tar.xz | |
net: broken sendfile on SmartOS/Solaris
In the event of a partial write on Solaris and some BSDs, the offset
pointer passed to sendfile() will be updated even though the function
returns -1 if errno is set to EAGAIN/EINTR. In that case, calculate the
bytes written based on the difference between the updated offset and the
original offset. If no bytes were written, and errno is set to
EAGAIN/EINTR, ignore the errno.
Fixes #13892
Change-Id: I6334b5ef2edcbebdaa7db36fa4f7785967313c2d
Reviewed-on: https://go-review.googlesource.com/21769
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/cmd/internal')
0 files changed, 0 insertions, 0 deletions
