Skip to content

Commit 7161210

Browse files
arihantbansalMicaiahReid
authored andcommitted
fix: increase max_request_body_size to 15 MiB
Solana accounts can be up to 10 MB. With base64/hex encoding overhead, the JSON-RPC payload for a max-size account reaches ~13.5 MB, exceeding the default 5 MiB limit and causing HTTP 413 during surfnet_setAccount runbook execution. 15 MiB accommodates the largest possible account with headroom.
1 parent 54e39c3 commit 7161210

File tree

1 file changed

+1
-0
lines changed
  • crates/core/src/runloops

1 file changed

+1
-0
lines changed

crates/core/src/runloops/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,6 +1070,7 @@ async fn start_http_rpc_server_runloop(
10701070
let server = match ServerBuilder::new(io)
10711071
.cors(DomainsValidation::Disabled)
10721072
.threads(6)
1073+
.max_request_body_size(15 * 1024 * 1024)
10731074
.start_http(&server_bind)
10741075
{
10751076
Ok(server) => server,

0 commit comments

Comments
 (0)