diff options
author | Cherry Mui <cherryyz@google.com> | 2021-11-30 17:30:57 -0500 |
---|---|---|
committer | Cherry Mui <cherryyz@google.com> | 2021-12-01 15:58:46 +0000 |
commit | 029dfbcc83123cb62e52f2aaedc46397815e3fa6 (patch) | |
tree | d4315182e3fa2626d110e788489be1d3cd5d9381 /src/net/sendfile_unix_alt.go | |
parent | ab7905540bf83b85cdbd6574e54319126df9dae8 (diff) | |
download | go-git-029dfbcc83123cb62e52f2aaedc46397815e3fa6.tar.gz |
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>
Diffstat (limited to 'src/net/sendfile_unix_alt.go')
-rw-r--r-- | src/net/sendfile_unix_alt.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/sendfile_unix_alt.go b/src/net/sendfile_unix_alt.go index 8845a981f5..f99af92bc8 100644 --- a/src/net/sendfile_unix_alt.go +++ b/src/net/sendfile_unix_alt.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build darwin || dragonfly || freebsd || solaris +//go:build (darwin && !ios) || dragonfly || freebsd || solaris package net |