From 8e0d8f4533124da265b2c883bdd75a6ed66a4afd Mon Sep 17 00:00:00 2001 From: Paul Sanders Date: Tue, 29 Dec 2020 16:55:35 -0500 Subject: [PATCH] Increasing payload default size --- meilisearch-http/src/option.rs | 2 +- meilisearch-http/tests/common.rs | 2 +- meilisearch-http/tests/errors.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/meilisearch-http/src/option.rs b/meilisearch-http/src/option.rs index e1d74fd63..62adc4c69 100644 --- a/meilisearch-http/src/option.rs +++ b/meilisearch-http/src/option.rs @@ -57,7 +57,7 @@ pub struct Opt { pub max_udb_size: usize, /// The maximum size, in bytes, of accepted JSON payloads - #[structopt(long, env = "MEILI_HTTP_PAYLOAD_SIZE_LIMIT", default_value = "10485760")] // 10MB + #[structopt(long, env = "MEILI_HTTP_PAYLOAD_SIZE_LIMIT", default_value = "104857600")] // 100MB pub http_payload_size_limit: usize, /// Read server certificates from CERTFILE. diff --git a/meilisearch-http/tests/common.rs b/meilisearch-http/tests/common.rs index 9111dc9f1..057baa1b9 100644 --- a/meilisearch-http/tests/common.rs +++ b/meilisearch-http/tests/common.rs @@ -57,7 +57,7 @@ impl Server { no_analytics: true, max_mdb_size: default_db_options.main_map_size, max_udb_size: default_db_options.update_map_size, - http_payload_size_limit: 10000000, + http_payload_size_limit: 100000000, ..Opt::default() }; diff --git a/meilisearch-http/tests/errors.rs b/meilisearch-http/tests/errors.rs index e11483356..2aac614f5 100644 --- a/meilisearch-http/tests/errors.rs +++ b/meilisearch-http/tests/errors.rs @@ -177,7 +177,7 @@ async fn document_not_found_error() { #[actix_rt::test] async fn payload_too_large_error() { let mut server = common::Server::with_uid("test"); - let bigvec = vec![0u64; 10_000_000]; // 80mb + let bigvec = vec![0u64; 100_000_000]; // 800mb assert_error!( "payload_too_large", "invalid_request_error",