Skip to content

Commit

Permalink
fix(comms/rpc): increase max frame size limit for rpc requests (#4724)
Browse files Browse the repository at this point in the history
Description
---
Increases max frame size for RPC from 2MiB to 3MiB

Motivation and Context
---
A wallet may need submit transactions greater than 2MiB in size

How Has This Been Tested?
---
Existing tests pass
  • Loading branch information
sdbondi authored Sep 26, 2022
1 parent b41226c commit 239b64b
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 239b64b

Please sign in to comment.