From 994e8e3c56e8ab15a3a4df0df636096d02dc30ef Mon Sep 17 00:00:00 2001 From: Boynn Date: Thu, 23 Feb 2023 15:22:04 +0800 Subject: [PATCH] Unlimited Received Size in common tikv client --- tikv-client-common/src/security.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tikv-client-common/src/security.rs b/tikv-client-common/src/security.rs index a89b2fca..08d58dc2 100644 --- a/tikv-client-common/src/security.rs +++ b/tikv-client-common/src/security.rs @@ -79,6 +79,7 @@ impl SecurityManager { let cb = ChannelBuilder::new(env) .keepalive_time(Duration::from_secs(10)) .keepalive_timeout(Duration::from_secs(3)) + .max_receive_message_len(-1) .use_local_subchannel_pool(true); let channel = if self.ca.is_empty() {