From d744f8289c36b1933898f6148e73167433977ce0 Mon Sep 17 00:00:00 2001 From: Congqi Xia Date: Thu, 17 Oct 2024 11:55:40 +0800 Subject: [PATCH] enhance: [GoSDK] Set default max send recv size Related to milvus-io/milvus-sdk-go#831 Signed-off-by: Congqi Xia --- client/client_config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/client_config.go b/client/client_config.go index 01f82877f7967..d0c867b7f3260 100644 --- a/client/client_config.go +++ b/client/client_config.go @@ -43,6 +43,9 @@ var DefaultGrpcOpts = []grpc.DialOption{ }, MinConnectTimeout: 3 * time.Second, }), + grpc.WithDefaultCallOptions( + grpc.MaxCallRecvMsgSize(math.MaxInt32), // math.MaxInt32 = 2147483647, 2GB - 1 + ), } // ClientConfig for milvus client.