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