Tentative fix for performance issues (https://github.com/SergioBenitez/Rocket/issues/928)
This commit is contained in:
parent
6a2fbed133
commit
299aea7d78
1 changed files with 1 additions and 0 deletions
|
@ -20,6 +20,7 @@ pub fn get_server(
|
|||
) -> Result<rocket::Rocket, errors::Error> {
|
||||
let mut config = rocket::Config::build(rocket::config::Environment::Production)
|
||||
.port(port)
|
||||
.keep_alive(0)
|
||||
.finalize()?;
|
||||
|
||||
if let Some(secret) = auth_secret {
|
||||
|
|
Loading…
Add table
Reference in a new issue