remove the connection timeout

This commit is contained in:
Thearas 2022-06-07 03:38:23 +08:00
parent c3003065e8
commit fd11903920
1 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,7 @@ use std::env;
use std::sync::Arc;
use actix_web::HttpServer;
use actix_web::http::KeepAlive;
use clap::Parser;
use meilisearch_auth::AuthController;
use meilisearch_http::analytics;
@ -83,7 +84,8 @@ async fn run_http(
)
})
// Disable signals allows the server to terminate immediately when a user enter CTRL-C
.disable_signals();
.disable_signals()
.keep_alive(KeepAlive::Os);
if let Some(config) = opt.get_ssl_config()? {
http_server