mirror of https://github.com/grpc/grpc-go.git
comment: default MaxSendMsgSize should be math.MaxInt32 instead of 4MB (#2586)
This commit is contained in:
parent
ec9c18c8c6
commit
4cad6a6283
|
@ -244,7 +244,7 @@ func MaxRecvMsgSize(m int) ServerOption {
|
|||
}
|
||||
|
||||
// MaxSendMsgSize returns a ServerOption to set the max message size in bytes the server can send.
|
||||
// If this is not set, gRPC uses the default 4MB.
|
||||
// If this is not set, gRPC uses the default `math.MaxInt32`.
|
||||
func MaxSendMsgSize(m int) ServerOption {
|
||||
return func(o *options) {
|
||||
o.maxSendMessageSize = m
|
||||
|
|
Loading…
Reference in New Issue