mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
http_private: add keep_alive options
This commit is contained in:
parent
26cd34f10a
commit
bf4b32748b
2 changed files with 4 additions and 2 deletions
|
|
@ -59,12 +59,12 @@ async fn run_app(
|
|||
|
||||
let app = Router::new()
|
||||
.route("/announce/:user_token/", get(routes::announce))
|
||||
.layer(Extension(Arc::new(config)))
|
||||
.layer(Extension(Arc::new(config.clone())))
|
||||
.layer(Extension(pool))
|
||||
.layer(Extension(Arc::new(request_sender)));
|
||||
|
||||
axum::Server::builder(tls_acceptor)
|
||||
.http1_keepalive(false)
|
||||
.http1_keepalive(config.network.keep_alive)
|
||||
.serve(app.into_make_service_with_connect_info::<SocketAddr>())
|
||||
.await?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue