diff options
| author | Alex Brainman <alex.brainman@gmail.com> | 2019-07-22 19:09:33 +1000 |
|---|---|---|
| committer | Emmanuel Odeke <emm.odeke@gmail.com> | 2019-08-27 16:54:49 +0000 |
| commit | b963149d4eddaf92d9e2a9d3bf5474c2d0a3b55d (patch) | |
| tree | c9236c3625876772d0757fb16f4310a3444c909f /src/encoding/json | |
| parent | 997086b7e6db6c74926500aa15fd3c02bc4939b8 (diff) | |
| download | go-b963149d4eddaf92d9e2a9d3bf5474c2d0a3b55d.tar.xz | |
net: do not call Windows TransmitFile for large files
TransmitFile does not allow for number of bytes that can be
transmitted to be larger than 2147483646. See
https://docs.microsoft.com/en-us/windows/win32/api/mswsock/nf-mswsock-transmitfile
for details. So adjust sendFile accordingly.
No test added, because this would require creating large file
(more than 2GB file).
Fixes #33193.
Change-Id: I82e0cb104d112264e4ea363bb20b6d02ac30b38e
Reviewed-on: https://go-review.googlesource.com/c/go/+/187037
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Diffstat (limited to 'src/encoding/json')
0 files changed, 0 insertions, 0 deletions
