增加RPC消息最大尺寸到512MB

This commit is contained in:
GoEdgeLab
2023-03-18 22:44:04 +08:00
parent bbc25168c2
commit e7bc478685

View File

@@ -268,8 +268,8 @@ func (this *APINode) InstallSystemService() error {
func (this *APINode) listenRPC(listener net.Listener, tlsConfig *tls.Config) error {
var rpcServer *grpc.Server
var options = []grpc.ServerOption{
grpc.MaxRecvMsgSize(128 * 1024 * 1024),
grpc.MaxSendMsgSize(128 * 1024 * 1024),
grpc.MaxRecvMsgSize(512 << 20),
grpc.MaxSendMsgSize(512 << 20),
grpc.UnaryInterceptor(this.unaryInterceptor),
}