调整GRPC参数

This commit is contained in:
刘祥超
2022-09-12 22:03:06 +08:00
parent 023e563de1
commit 8ceb1334cd

View File

@@ -267,6 +267,7 @@ func (this *APINode) listenRPC(listener net.Listener, tlsConfig *tls.Config) err
var rpcServer *grpc.Server var rpcServer *grpc.Server
var options = []grpc.ServerOption{ var options = []grpc.ServerOption{
grpc.MaxRecvMsgSize(128 * 1024 * 1024), grpc.MaxRecvMsgSize(128 * 1024 * 1024),
grpc.MaxSendMsgSize(128 * 1024 * 1024),
grpc.UnaryInterceptor(this.unaryInterceptor), grpc.UnaryInterceptor(this.unaryInterceptor),
} }