Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions backend/core/utils/ipc.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ func scanOutputPipe(pipe io.ReadCloser, wg *sync.WaitGroup, onReceive func([]byt
responseCreator func([]byte) *ProcessResponse, outboundChannel chan<- *ProcessResponse) func() {
return func() {
scanner := bufio.NewScanner(pipe)
scanner.Buffer(make([]byte, 5*1024*1024), 5*1024*1024)
scanner.Split(bufio.ScanLines)
for scanner.Scan() {
src := scanner.Bytes()
Expand All @@ -256,6 +257,7 @@ func scanErrorPipe(pipe io.ReadCloser, onReceive func([]byte), outboundChannel c
remoteErrorMsg := &strings.Builder{}
return func() {
scanner := bufio.NewScanner(pipe)
scanner.Buffer(make([]byte, 5*1024*1024), 5*1024*1024)
scanner.Split(bufio.ScanLines)
for scanner.Scan() {
src := scanner.Bytes()
Expand Down