From dce7f335c5f9373dc1b56d7165f1a722e9240c61 Mon Sep 17 00:00:00 2001
From: Damien Neil
- TODO: https://go.dev/issue/58808: arrange zero-copy of os.File and TCPConn to UnixConn
+ When
@@ -672,7 +675,10 @@ Minor changes to the library
io.Copy
copies
+ from a TCPConn
to a UnixConn
,
+ it will now use Linux's sendfile(2)
system call if possible,
+ using the new method TCPConn.WriteTo
.
Minor changes to the library
- TODO: https://go.dev/issue/58808: arrange zero-copy of os.File and TCPConn to UnixConn
+ When io.Copy
copies
+ from a File
to a net.UnixConn
,
+ it will now use Linux's sendfile(2)
system call if possible,
+ using the new method File.WriteTo
.