aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorqmuntal <quimmuntal@gmail.com>2026-03-08 14:18:04 +0100
committerQuim Muntal <quimmuntal@gmail.com>2026-03-10 22:58:01 -0700
commitd3651c588846e1147e5a72f71c133dc8288e1e13 (patch)
tree050c10b891b03662855e8c39a6a0a3c626a3018b /src/runtime
parent97d643045888d1af2004410365a00bafe1713f47 (diff)
downloadgo-d3651c588846e1147e5a72f71c133dc8288e1e13.tar.xz
runtime/poll: fix race condition in Window's SendFile
The destination of SendFile is a socket, which doesn't support file offsets. There is no need to keep track of the file offset, and doing so causes a race between SendFile and Read. While here, make sure that SendFile tests do call poll.SendFile. Fixes #78015 Cq-Include-Trybots: luci.golang.try:gotip-windows-amd64-race,gotip-linux-amd64-race Change-Id: I8cce45c0c110e848d9bdbc5ba340b92ca041f0a4 Reviewed-on: https://go-review.googlesource.com/c/go/+/752860 Reviewed-by: Damien Neil <dneil@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Reviewed-by: Mark Freeman <markfreeman@google.com>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions