Skip to content

Commit 9943380

Browse files
authored
Fix issue with grpc message limit (#439)
I'm not sure what's happening, but I get `grpc: received message larger than max (16777263 vs. 16777216)` error when using imgtool from new release. The containerd client should be slicing writes to fit within limit https://github.com/containerd/containerd/blob/api/v1.10.0/core/content/proxy/content_writer.go#L82 But for some reason that is not happening. I haven't figured out what's going on, I suggest that we just lower buffer size in imgtool.
1 parent 1aba20f commit 9943380

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

img_tool/pkg/load/load.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222

2323
const (
2424
defaultWorkers = 4
25-
writeBufferSize = 16 * 1024 * 1024
25+
writeBufferSize = 8 * 1024 * 1024
2626
)
2727

2828
type Request struct {

0 commit comments

Comments
 (0)