Skip to content

Commit

Permalink
Merge pull request #72053 from wojtek-t/streaming_limit
Browse files Browse the repository at this point in the history
Increase limit for object size in streaming serializer
  • Loading branch information
k8s-ci-robot committed Dec 15, 2018
2 parents 1513877 + 886400f commit 5a5111f
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 5a5111f

Please sign in to comment.