]> Cypherpunks repositories - gostls13.git/commit
internal/poll: do not use Windows TransmitFile with pipes
authorAlex Brainman <alex.brainman@gmail.com>
Thu, 23 Nov 2017 07:21:52 +0000 (18:21 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Sun, 26 Nov 2017 01:41:33 +0000 (01:41 +0000)
commit4aa5dcc2592587c9ef98a9526b26e0dfb5470bf8
tree9c0492ebb672327e92d4b9ac0976c6b3b0306474
parent7da2f8278f10ed389e0d96cb43e5445d80d21f9b
internal/poll: do not use Windows TransmitFile with pipes

It appears that TransmitFile Windows API does not work with Windows
pipes. So just copy data from pipe and into TCP connection manually.

Fixes #22278

Change-Id: I4810caca5345eac5bffb3176956689b8ae993256
Reviewed-on: https://go-review.googlesource.com/79775
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/internal/poll/sendfile_windows.go
src/net/tcpsock_test.go