Skip to content

Commit 029dfbc

Browse files
committed
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>
1 parent ab79055 commit 029dfbc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/net/sendfile_stub.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build aix || (js && wasm) || netbsd || openbsd
5+
//go:build aix || (js && wasm) || netbsd || openbsd || ios
66

77
package net
88

src/net/sendfile_unix_alt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build darwin || dragonfly || freebsd || solaris
5+
//go:build (darwin && !ios) || dragonfly || freebsd || solaris
66

77
package net
88

0 commit comments

Comments
 (0)