http_private: disable keep_alive

This commit is contained in:
Joakim Frostegård 2022-04-03 00:43:38 +02:00
parent 5d4f30bb7b
commit 30d06937fc
2 changed files with 1 additions and 3 deletions

View file

@ -46,6 +46,7 @@ async fn run_app(
.layer(Extension(Arc::new(request_sender)));
axum::Server::from_tcp(tcp_listener)?
.http1_keepalive(false)
.serve(app.into_make_service_with_connect_info::<SocketAddr>())
.await?;