Browse Source

Increase windows IPC starting buffer size

JoshEngebretson 9 years ago
parent
commit
a805200b26
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Source/Atomic/IPC/IPCWindows.cpp

+ 3 - 1
Source/Atomic/IPC/IPCWindows.cpp

@@ -40,7 +40,9 @@ namespace Atomic
 {
 {
 
 
 static const wchar_t kPipePrefix[] = L"\\\\.\\pipe\\";
 static const wchar_t kPipePrefix[] = L"\\\\.\\pipe\\";
-static const int kPipeBufferSz = 4 * 1024;
+// start with 1 megabyte of buffer, this will grow if a request exceeds this size
+// however, it will block during resize
+static const int kPipeBufferSz = 1024 * 1024;
 static LONG g_pipe_seq = 0;
 static LONG g_pipe_seq = 0;
 
 
 HANDLE PipePair::OpenPipeServer(const wchar_t* name, bool read)
 HANDLE PipePair::OpenPipeServer(const wchar_t* name, bool read)