]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.11] internal/poll: advance file position in windows sendfile
authorAlex Brainman <alex.brainman@gmail.com>
Tue, 30 Oct 2018 08:40:57 +0000 (19:40 +1100)
committerIan Lance Taylor <iant@golang.org>
Tue, 30 Oct 2018 13:28:45 +0000 (13:28 +0000)
commit97781d2ed116d2cd9cb870d0b84fc0ec598c9abc
tree32cbcc7508f3ebca7a0d58565337e46314a622b8
parentedb6c16b9b62ed8586d2e3e422911d646095b7e5
[release-branch.go1.11] internal/poll: advance file position in windows sendfile

Some versions of Windows (Windows 10 1803) do not set file
position after TransmitFile completes. So just use Seek
to set file position before returning from sendfile.

Fixes #27411

Change-Id: I7a49be10304b5db19dda707b13ac93d338aeb190
Reviewed-on: https://go-review.googlesource.com/131976
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Yasuhiro MATSUMOTO <mattn.jp@gmail.com>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-on: https://go-review.googlesource.com/c/145779
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
src/internal/poll/sendfile_windows.go