]> Cypherpunks repositories - gostls13.git/commit
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)
committerAlex Brainman <alex.brainman@gmail.com>
Fri, 31 Aug 2018 09:16:02 +0000 (09:16 +0000)
commit8359b5e134052db0e5f1bc2257d496b0a81aa4fb
tree40d64fa41ba60835c7133193b567907fbc74f9b0
parent09ea3c08e8fd1915515383f8cb4c0bb237d2b87d
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 #25722

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>
src/internal/poll/sendfile_windows.go