]> Cypherpunks repositories - gostls13.git/commitdiff
net: disable sendfile on Solaris for now
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 11 Jan 2016 20:27:37 +0000 (12:27 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 11 Jan 2016 20:34:12 +0000 (20:34 +0000)
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>
src/net/sendfile_solaris.go

index 0966575696be2e3b82304db1d54c94b17a50287d..f6833813fd0a0f79d9d520a440cf91a7882c7d45 100644 (file)
@@ -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