File tree 1 file changed +8
-2
lines changed 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -602,7 +602,10 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
602
602
< dl id ="net "> < dt > < a href ="/pkg/net/ "> net</ a > </ dt >
603
603
< dd >
604
604
< p > <!-- https://go.dev/issue/58808 -->
605
- TODO: < a href ="https://go.dev/issue/58808 "> https://go.dev/issue/58808</ a > : arrange zero-copy of os.File and TCPConn to UnixConn
605
+ When < a href ="/pkg/io#Copy "> < code > io.Copy</ code > </ a > copies
606
+ from a < code > TCPConn</ code > to a < code > UnixConn</ code > ,
607
+ it will now use Linux's < code > sendfile(2)</ code > system call if possible,
608
+ using the new method < a href ="/pkg/net#TCPConn.WriteTo "> < code > TCPConn.WriteTo</ code > </ a > .
606
609
</ p >
607
610
608
611
< p > <!-- CL 467335 -->
@@ -672,7 +675,10 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
672
675
</ p >
673
676
674
677
< p > <!-- https://go.dev/issue/58808 -->
675
- TODO: < a href ="https://go.dev/issue/58808 "> https://go.dev/issue/58808</ a > : arrange zero-copy of os.File and TCPConn to UnixConn
678
+ When < a href ="/pkg/io#Copy "> < code > io.Copy</ code > </ a > copies
679
+ from a < code > File</ code > to a < code > net.UnixConn</ code > ,
680
+ it will now use Linux's < code > sendfile(2)</ code > system call if possible,
681
+ using the new method < a href ="/pkg/os#File.WriteTo "> < code > File.WriteTo</ code > </ a > .
676
682
</ p >
677
683
</ dd >
678
684
</ dl > <!-- os -->
You can’t perform that action at this time.
0 commit comments