Mercurial > vim
comparison src/os_win32.c @ 15621:bfbdef46aa7d v8.1.0818
patch 8.1.0818: MS-Windows: cannot send large data with ch_sendraw()
commit https://github.com/vim/vim/commit/240583869ae477202494dd01ef1e8e2bac650f10
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 24 23:11:49 2019 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 24 Jan 2019 23:15:05 +0100 |
parents | 639b8318472c |
children | a3e2e7948ee4 |
comparison
equal
deleted
inserted
replaced
15620:327925217fe3 | 15621:bfbdef46aa7d |
---|---|
5367 // Create named pipe. Max size of named pipe is 65535. | 5367 // Create named pipe. Max size of named pipe is 65535. |
5368 handles[1] = CreateNamedPipe( | 5368 handles[1] = CreateNamedPipe( |
5369 name, | 5369 name, |
5370 PIPE_ACCESS_OUTBOUND | FILE_FLAG_OVERLAPPED, | 5370 PIPE_ACCESS_OUTBOUND | FILE_FLAG_OVERLAPPED, |
5371 PIPE_TYPE_BYTE | PIPE_NOWAIT, | 5371 PIPE_TYPE_BYTE | PIPE_NOWAIT, |
5372 1, 65535, 0, 0, NULL); | 5372 1, MAX_NAMED_PIPE_SIZE, 0, 0, NULL); |
5373 | 5373 |
5374 if (handles[1] == INVALID_HANDLE_VALUE) | 5374 if (handles[1] == INVALID_HANDLE_VALUE) |
5375 return FALSE; | 5375 return FALSE; |
5376 | 5376 |
5377 sa.nLength = sizeof(sa); | 5377 sa.nLength = sizeof(sa); |