Skip to content

Commit

Permalink
fix(comms/rpc): increase max frame size limit for rpc requests
Browse files Browse the repository at this point in the history
  • Loading branch information
sdbondi committed Sep 23, 2022
1 parent f55762e commit 50747fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comms/core/src/protocol/rpc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ mod test;

/// Maximum frame size of each RPC message. This is enforced in tokio's length delimited codec.
/// This can be thought of as the hard limit on message size.
pub const RPC_MAX_FRAME_SIZE: usize = 2 * 1024 * 1024; // 2 MiB
pub const RPC_MAX_FRAME_SIZE: usize = 3 * 1024 * 1024; // 3 MiB
/// Maximum number of chunks into which a message can be broken up.
const RPC_CHUNKING_MAX_CHUNKS: usize = 16; // 16 x 256 Kib = 4 MiB max combined message size
const RPC_CHUNKING_THRESHOLD: usize = 256 * 1024;
Expand Down

0 comments on commit 50747fb

Please sign in to comment.