]> Cypherpunks repositories - gostls13.git/commit
net: do not use sendfile on iOS
authorCherry Mui <cherryyz@google.com>
Tue, 30 Nov 2021 22:30:57 +0000 (17:30 -0500)
committerCherry Mui <cherryyz@google.com>
Wed, 1 Dec 2021 15:58:46 +0000 (15:58 +0000)
commit029dfbcc83123cb62e52f2aaedc46397815e3fa6
treed4315182e3fa2626d110e788489be1d3cd5d9381
parentab7905540bf83b85cdbd6574e54319126df9dae8
net: do not use sendfile on iOS

Apparently, on the iOS builder sendfile causes a SIGSYS signal
(instead of returning ENOSYS). Disabling it for now so we can
make progress on iOS. We can revisit if sendfile is actually
broken on iOS and whether it is beneficial.

Updates #49616.

Change-Id: I3883fad0ce35e3f0aa352301eb499a1afa0225a1
Reviewed-on: https://go-review.googlesource.com/c/go/+/368054
Trust: Cherry Mui <cherryyz@google.com>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Changkun Ou <mail@changkun.de>
Reviewed-by: Roland Shoemaker <roland@golang.org>
src/net/sendfile_stub.go
src/net/sendfile_unix_alt.go