diff options
author | Brad Fitzpatrick <bradfitz@golang.org> | 2016-01-11 12:27:37 -0800 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-01-11 20:34:12 +0000 |
commit | ba593d6ab861222ee03b87a6f733afac48f5a04e (patch) | |
tree | e36fcff8822d0fb50bb0711d627eb067ad25d6fd | |
parent | 3dda43c6aa89d72f82e441b83a1d747900e1b12d (diff) | |
download | go-ba593d6ab861222ee03b87a6f733afac48f5a04e.tar.gz go-ba593d6ab861222ee03b87a6f733afac48f5a04e.zip |
net: disable sendfile on Solaris for now
There are reports of corruption. Let's disable it for now (for Go 1.6,
especially) until we can investigate and fix properly.
Update #13892
Change-Id: I557275e5142fe616e8a4f89c00ffafb830eb3b78
Reviewed-on: https://go-review.googlesource.com/18540
Reviewed-by: Dave Cheney <dave@cheney.net>
-rw-r--r-- | src/net/sendfile_solaris.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/sendfile_solaris.go b/src/net/sendfile_solaris.go index 0966575696..f6833813fd 100644 --- a/src/net/sendfile_solaris.go +++ b/src/net/sendfile_solaris.go @@ -26,6 +26,8 @@ const maxSendfileSize int = 4 << 20 // // if handled == false, sendFile performed no work. func sendFile(c *netFD, r io.Reader) (written int64, err error, handled bool) { + return // Solaris sendfile is disabled until Issue 13892 is understood and fixed + // Solaris uses 0 as the "until EOF" value. If you pass in more bytes than the // file contains, it will loop back to the beginning ad nauseam until it's sent // exactly the number of bytes told to. As such, we need to know exactly how many |