1
0
forked from aniani/vim

patch 8.1.0818: MS-Windows: cannot send large data with ch_sendraw()

Problem:    MS-Windows: cannot send large data with ch_sendraw().
Solution:   Split write into several WriteFile() calls. (Yasuhiro Matsumoto,
            closes #3823)
This commit is contained in:
Bram Moolenaar
2019-01-24 23:11:49 +01:00
parent 99531a7604
commit 240583869a
6 changed files with 51 additions and 13 deletions

View File

@@ -5369,7 +5369,7 @@ create_pipe_pair(HANDLE handles[2])
name,
PIPE_ACCESS_OUTBOUND | FILE_FLAG_OVERLAPPED,
PIPE_TYPE_BYTE | PIPE_NOWAIT,
1, 65535, 0, 0, NULL);
1, MAX_NAMED_PIPE_SIZE, 0, 0, NULL);
if (handles[1] == INVALID_HANDLE_VALUE)
return FALSE;