]> Cypherpunks repositories - gostls13.git/commit
internal/poll: remove detection of buggy splice on old Linux versions
authorTobias Klauser <tklauser@distanz.ch>
Wed, 17 Aug 2022 20:21:23 +0000 (22:21 +0200)
committerGopher Robot <gobot@golang.org>
Thu, 18 Aug 2022 05:32:36 +0000 (05:32 +0000)
commita2c2f06cad8aa722120cb73e965d168bfcb4d977
tree53d4062a099541403d49f6188eeda0d954bd83ad
parentb15c399a36a38509ae56dd69670974566f7b0d52
internal/poll: remove detection of buggy splice on old Linux versions

The splice syscall is buggy prior to Linux 2.6.29. CL 113999 added a
workaround to detect buggy versions and disable use of splice for these.
As of Go 1.18 the minumum Linux version is 2.6.32. Thus, a non-buggy
implementation of the splice syscall can be assumed.

For #45964
Fixes #54505

Change-Id: Ied3a3334da7a3f7fa1280b7c5b1dfb9030219336
Reviewed-on: https://go-review.googlesource.com/c/go/+/422979
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/internal/poll/splice_linux.go