server: move peer cred checking to connection task

This commit also gets rid of the database connection closing helper
This commit is contained in:
2025-11-29 00:52:35 +09:00
parent 7ce81ddc55
commit bc4f2bc71c
3 changed files with 62 additions and 75 deletions

View File

@@ -253,7 +253,7 @@ fn run_forked_server(
.block_on(async {
let socket = TokioUnixStream::from_std(server_socket)?;
let db_pool = construct_single_connection_mysql_pool(&config.mysql).await?;
session_handler::session_handler(socket, &unix_user, db_pool).await?;
session_handler::session_handler_with_unix_user(socket, &unix_user, db_pool).await?;
Ok(())
});