]> Cypherpunks repositories - gostls13.git/commit
net,os: consolidate poll.SendFile sending until EOF with 0
authorAndy Pan <i@andypan.me>
Wed, 30 Oct 2024 00:18:25 +0000 (08:18 +0800)
committerGopher Robot <gobot@golang.org>
Fri, 1 Nov 2024 01:09:12 +0000 (01:09 +0000)
commita69fffbaf864ad88f9f7472960e39e2a03c1ff5f
tree62787519f2975cdf197d36fee84a258d849a9d22
parent970dfe0ff0ca8540c6dea2b1427f8a93fd43706c
net,os: consolidate poll.SendFile sending until EOF with 0

We've already use size==0 to indicate sending until EOF for
poll.SendFile on non-Linux platforms: Windows/*BSD/macOS/Solaris.

Let's harmonize Linux with others, making poll.SendFile on Linux
match its comment.

Change-Id: Ibfe9c9aa8f16bc37812afce9f95995c715cce0bb
Reviewed-on: https://go-review.googlesource.com/c/go/+/623057
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/net/sendfile_linux.go
src/os/zero_copy_linux.go
src/os/zero_copy_solaris.go