From 4cad6a62833044625feecb561a3e882be34097cc Mon Sep 17 00:00:00 2001 From: Wu Kai Date: Wed, 23 Jan 2019 02:48:59 +0800 Subject: [PATCH] comment: default MaxSendMsgSize should be math.MaxInt32 instead of 4MB (#2586) --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index ebf86bf47..0f454971a 100644 --- a/server.go +++ b/server.go @@ -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