Increase limit for object size in streaming serializer

pull/564/head
wojtekt 2018-12-14 11:58:40 +01:00
parent 83f115ec79
commit 886400f62a
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ func NewDecoder(r io.ReadCloser, d runtime.Decoder) Decoder {
reader: r,
decoder: d,
buf: make([]byte, 1024),
maxBytes: 1024 * 1024,
maxBytes: 16 * 1024 * 1024,
}
}

View File

@ -51,7 +51,7 @@ func TestDecoder(t *testing.T) {
frames := [][]byte{
make([]byte, 1025),
make([]byte, 1024*5),
make([]byte, 1024*1024*5),
make([]byte, 1024*1024*17),
make([]byte, 1025),
}
pr, pw := io.Pipe()