]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.10] internal/poll: advance file position in windows sendfile
authorAlex Brainman <alex.brainman@gmail.com>
Sun, 26 Aug 2018 06:45:10 +0000 (16:45 +1000)
committerIan Lance Taylor <iant@golang.org>
Thu, 1 Nov 2018 22:47:33 +0000 (22:47 +0000)
commit13a2f533e0d9ef715acbdcaf09d983b81e3728f7
tree0a8f88a1d6321fbab58081eded7011ff4c0fdcdc
parentedd28f1e6dd7cb2fe053857b72e43a8defa8d718
[release-branch.go1.10] 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.

Updates #25722
Fixes #27419

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>
(cherry picked from commit 8359b5e134052db0e5f1bc2257d496b0a81aa4fb)
Reviewed-on: https://go-review.googlesource.com/c/146779
Run-TryBot: Ian Lance Taylor <iant@golang.org>
src/internal/poll/sendfile_windows.go