]> Cypherpunks repositories - gostls13.git/commit
internal/poll: don't call Seek for overlapped Windows handles
authorqmuntal <quimmuntal@gmail.com>
Tue, 19 Aug 2025 11:00:02 +0000 (13:00 +0200)
committerQuim Muntal <quimmuntal@gmail.com>
Wed, 20 Aug 2025 17:33:51 +0000 (10:33 -0700)
commit509d5f647ffc413bd874c2e2bf6d1b33f9bc0ac2
treec566db74cd33acb90133e0d2021da41b06f18c39
parent853fc1273912b020e428c77d35e525c9225fd51e
internal/poll: don't call Seek for overlapped Windows handles

Overlapped handles don't have the file pointer updated when performing
I/O operations, so there is no need to call FD.Seek to reset the file
pointer.

Also, some overlapped file handles don't support seeking. See #74951.

Fixes #74951.

Change-Id: I0edd53beed7d3862730f3b2ed5fe9ba490e66c06
Reviewed-on: https://go-review.googlesource.com/c/go/+/697295
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/internal/poll/fd_windows.go
src/os/os_windows_test.go