From 46e11ca0a1d8d35f25da6f46753e56a71cb097b4 Mon Sep 17 00:00:00 2001 From: James MacMahon Date: Mon, 11 Dec 2023 16:38:17 -0500 Subject: [PATCH] Restore larger max request body size 76b835d5d68657265564f40a4667e8ffc7026091 removed the dropshot configuration that bumped the sled agent's max request size to 1M. The sled agent needs to be able to handler larger POSTs, so restore that parameter. --- sled-agent/src/server.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sled-agent/src/server.rs b/sled-agent/src/server.rs index b93ad0721c..c983c20b11 100644 --- a/sled-agent/src/server.rs +++ b/sled-agent/src/server.rs @@ -72,6 +72,10 @@ impl Server { let dropshot_config = dropshot::ConfigDropshot { bind_address: SocketAddr::V6(sled_address), + + // bump up size to handle large POSTs + request_body_max_bytes: 1024 * 1024, + ..config.dropshot }; let dropshot_log = log.new(o!("component" => "dropshot (SledAgent)"));