larger buffer
This commit is contained in:
parent
9a7ee9f284
commit
b5b97c4b8d
@ -22,6 +22,7 @@ import (
|
||||
)
|
||||
|
||||
const ipcSocketArg = "--ipc-socket"
|
||||
const maxMessageLength = 1 * 1024 * 1024 * 1024 // 1 gigabyte
|
||||
|
||||
type StdioMode int
|
||||
|
||||
@ -61,6 +62,7 @@ type ipcCommon struct {
|
||||
|
||||
func (ipc *ipcCommon) readConn() {
|
||||
scn := bufio.NewScanner(ipc.conn)
|
||||
scn.Buffer(nil, maxMessageLength)
|
||||
for scn.Scan() {
|
||||
var msg Message
|
||||
if err := json.Unmarshal(scn.Bytes(), &msg); err != nil {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user