bump default max_concurrent_requests to 500, update config comment

also raise 1024 bytes to 4096 bytes in minimum max_request_size check

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-02-09 19:10:08 -05:00 committed by June
parent da4b509940
commit 0b171a2b9c
3 changed files with 17 additions and 9 deletions

View file

@ -260,8 +260,8 @@ impl KeyValueDatabase {
return Err(Error::bad_config("Registration token is empty"));
}
if config.max_request_size < 1024 {
error!(?config.max_request_size, "Max request size is less than 1KB. Please increase it.");
if config.max_request_size < 4096 {
error!(?config.max_request_size, "Max request size is less than 4KB. Please increase it.");
}
let (presence_sender, presence_receiver) = mpsc::unbounded_channel();