Skip to content

Commit e2f688f

Browse files
mattfarinaMatthew Fisher
authored andcommitted
fix(grpc): Fixes issue where message sending limited to 4mb
Between grpc 1.2.x and 1.7.x there was an API change. The previous MaxMsgSize is now a wrapper around MaxRecvMsgSize. This change now sets the MaxRecvMsgSize and MaxSendMsgSize which need to be set independently. (cherry picked from commit 614cd9d)
1 parent 63da741 commit e2f688f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/tiller/server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ var maxMsgSize = 1024 * 1024 * 20
3636
// DefaultServerOpts returns the set of default grpc ServerOption's that Tiller requires.
3737
func DefaultServerOpts() []grpc.ServerOption {
3838
return []grpc.ServerOption{
39-
grpc.MaxMsgSize(maxMsgSize),
39+
grpc.MaxRecvMsgSize(maxMsgSize),
40+
grpc.MaxSendMsgSize(maxMsgSize),
4041
grpc.UnaryInterceptor(newUnaryInterceptor()),
4142
grpc.StreamInterceptor(newStreamInterceptor()),
4243
}

0 commit comments

Comments
 (0)