From: Andy Pan Date: Wed, 13 Dec 2023 01:23:18 +0000 (+0800) Subject: doc/go1.22: correct the system call name used for zero-copy from net.TCPConn to net... X-Git-Tag: go1.22rc1~8 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=23fee06a140ea6e5ac184e255786900479ca52ca;p=gostls13.git doc/go1.22: correct the system call name used for zero-copy from net.TCPConn to net.UnixConn For #58808 Change-Id: I9b27af30888aaaa9659387a32c57aaea136b1c3a Reviewed-on: https://go-review.googlesource.com/c/go/+/549335 Reviewed-by: Damien Neil Reviewed-by: Michael Pratt Auto-Submit: Michael Pratt LUCI-TryBot-Result: Go LUCI --- diff --git a/doc/go1.22.html b/doc/go1.22.html index cd20bb7479..bf01cffce0 100644 --- a/doc/go1.22.html +++ b/doc/go1.22.html @@ -616,7 +616,7 @@ defer func() {

When io.Copy copies from a TCPConn to a UnixConn, - it will now use Linux's sendfile(2) system call if possible, + it will now use Linux's splice(2) system call if possible, using the new method TCPConn.WriteTo.