Skip to content

Commit

Permalink
Restore larger max request body size
Browse files Browse the repository at this point in the history
76b835d 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.
  • Loading branch information
jmpesp committed Dec 11, 2023
1 parent 4ad7325 commit 46e11ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sled-agent/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)"));
Expand Down

0 comments on commit 46e11ca

Please sign in to comment.