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:
parent
da4b509940
commit
0b171a2b9c
3 changed files with 17 additions and 9 deletions
|
@ -402,7 +402,7 @@ fn default_max_request_size() -> u32 {
|
|||
}
|
||||
|
||||
fn default_max_concurrent_requests() -> u16 {
|
||||
100
|
||||
500
|
||||
}
|
||||
|
||||
fn default_max_fetch_prev_events() -> u16 {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue