additional interruption points to hasten shutdown

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-12-22 22:59:43 +00:00 committed by strawberry
parent 03f2ac9caf
commit e5a1309583
4 changed files with 11 additions and 3 deletions

View file

@ -43,7 +43,7 @@ pub(super) async fn serve(
let app = app.into_make_service_with_connect_info::<net::SocketAddr>();
let builder = server::conn::auto::Builder::new(executor);
let listener = init(server).await?;
loop {
while server.running() {
let app = app.clone();
let builder = builder.clone();
tokio::select! {