From f7f52e714f010ee28a62484078edb4fdc85069fe Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sun, 9 Apr 2023 21:05:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96grpc=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/rpc/rpc_client.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/internal/rpc/rpc_client.go b/internal/rpc/rpc_client.go index 8b2d9481..d13e49fd 100644 --- a/internal/rpc/rpc_client.go +++ b/internal/rpc/rpc_client.go @@ -544,8 +544,11 @@ func (this *RPCClient) init() error { } var conn *grpc.ClientConn - var callOptions = grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(128*1024*1024), - grpc.UseCompressor(gzip.Name)) + var callOptions = grpc.WithDefaultCallOptions( + grpc.MaxCallRecvMsgSize(128<<20), + grpc.MaxCallSendMsgSize(128<<20), + grpc.UseCompressor(gzip.Name), + ) if u.Scheme == "http" { conn, err = grpc.Dial(apiHost, grpc.WithTransportCredentials(insecure.NewCredentials()), callOptions) } else if u.Scheme == "https" {