diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-04-07 01:11:31 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-04-08 00:03:12 -0700 |
| commit | 6ac34926a4f704ecab09167f07b94aa269df5b98 (patch) | |
| tree | 030910a0ace61dd622d10f0c27363f16b2a4d783 /src/rustllvm/RustWrapper.cpp | |
| parent | 00cbda2d0af81a054ba61bd237f98e033ba7a2fa (diff) | |
| download | rust-6ac34926a4f704ecab09167f07b94aa269df5b98.tar.gz rust-6ac34926a4f704ecab09167f07b94aa269df5b98.zip | |
std: User a smaller stdin buffer on windows
Apparently windows doesn't like reading from stdin with a large buffer size, and it also apparently is ok with a smaller buffer size. This changes the reader returned by stdin() to return an 8k buffered reader for stdin rather than a 64k buffered reader. Apparently libuv has run into this before, taking a peek at their code, with a specific comment in their console code saying that "ReadConsole can't handle big buffers", which I presume is related to invoking ReadFile as if it were a file descriptor. Closes #13304
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
