Skip to content

Commit

Permalink
Increase limit for object size in streaming serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtek-t committed Jan 17, 2019
1 parent f5d6de3 commit c04518b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c04518b

Please sign in to comment.