From c770d09c07ec6f1a7a5336bbc288499ef9b7e678 Mon Sep 17 00:00:00 2001 From: Babis Chalios Date: Wed, 8 Sep 2021 13:49:13 +0300 Subject: [PATCH] Temporarily increase the size of allowed transfers We need to evaluate what is the best solution here, increasing the allowed transfer size, or instead solving the problem in the protocol level but chunking big transfers. At the moment, we increase the allowed size so that we can make progress. Signed-off-by: Babis Chalios --- src/proto.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto.rs b/src/proto.rs index ff3e3f7c..37a19960 100644 --- a/src/proto.rs +++ b/src/proto.rs @@ -16,7 +16,7 @@ use protobuf::{CodedInputStream, CodedOutputStream}; use crate::error::{get_rpc_status, Error, Result as TtResult}; pub const MESSAGE_HEADER_LENGTH: usize = 10; -pub const MESSAGE_LENGTH_MAX: usize = 4 << 20; +pub const MESSAGE_LENGTH_MAX: usize = 1 << 30; pub const DEFAULT_PAGE_SIZE: usize = 4 << 10; pub const MESSAGE_TYPE_REQUEST: u8 = 0x1;