From d9d7f4943080cc0f52f317c0703cd413171b197e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dos=28=EC=8B=A0=EB=8F=99=EC=98=A4=29?= Date: Wed, 12 Jul 2023 17:20:12 +0900 Subject: [PATCH] # FIX - fix windows config missing --- connect_windows.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/connect_windows.go b/connect_windows.go index 2db313c..b5a944a 100755 --- a/connect_windows.go +++ b/connect_windows.go @@ -14,8 +14,11 @@ import ( func (s *Server) run() error { var pipeBase = `\\.\pipe\` - - listen, err := winio.ListenPipe(pipeBase+s.name, nil) + pipeConfig := winio.PipeConfig{ + InputBufferSize: int32(s.maxMsgSize), + OutputBufferSize: int32(s.maxMsgSize), + } + listen, err := winio.ListenPipe(pipeBase+s.name, &pipeConfig) if err != nil { return err