]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.23] net: don't use sendfile for irregular files; handle EOPNOTSUP...
authorIan Lance Taylor <iant@golang.org>
Wed, 11 Dec 2024 22:18:42 +0000 (14:18 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 18 Dec 2024 17:42:15 +0000 (09:42 -0800)
commit1576793c513c5cd8396d1a5b004b546e82efc033
treef94860bf57cb1348d8bb27bcbdd6486350707ae1
parent59b7d40774b29bd1da1aa624f13233111aff4ad2
[release-branch.go1.23] net: don't use sendfile for irregular files; handle EOPNOTSUPP/ENOTSUP

This is not a cherry pick, because the code has changed on tip.

For #70763
Fixes #70789

Change-Id: If9fcfee17e86a746cf8c72293dc34f80b430f6e6
Reviewed-on: https://go-review.googlesource.com/c/go/+/635397
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/internal/poll/sendfile_bsd.go
src/net/sendfile_unix_alt.go
src/net/sendfile_unix_test.go [new file with mode: 0644]