From b94c5733da870430298ac474a567561b422f74f4 Mon Sep 17 00:00:00 2001 From: Congqi Xia Date: Thu, 17 Oct 2024 10:49:13 +0800 Subject: [PATCH] enhance: Set default max send recv size Related to #831 Signed-off-by: Congqi Xia --- client/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/config.go b/client/config.go index 49c178063..df9d4af90 100644 --- a/client/config.go +++ b/client/config.go @@ -46,6 +46,10 @@ var DefaultGrpcOpts = []grpc.DialOption{ }, MinConnectTimeout: 3 * time.Second, }), + grpc.WithDefaultCallOptions( + grpc.MaxCallRecvMsgSize(math.MaxInt32), // math.MaxInt32 = 2147483647, 2GB - 1 + // not setting max send msg size, since default is Unlimited + ), } // Config for milvus client.