feat: Graceful shutdown (10s);backup 格式兼容 .dump.gz;容器连接监控
Some checks failed
Deploy Backend / deploy (push) Has been cancelled
Some checks failed
Deploy Backend / deploy (push) Has been cancelled
This commit is contained in:
@@ -325,6 +325,7 @@ async fn main() -> std::io::Result<()> {
|
||||
create_server_config(pool_clone.clone(), http_client_clone.clone(), app_state_clone.clone())
|
||||
})
|
||||
.keep_alive(std::time::Duration::from_secs(30))
|
||||
.shutdown_timeout(10)
|
||||
.backlog(1024)
|
||||
.bind_openssl(&addr, ssl_builder)
|
||||
{
|
||||
@@ -348,6 +349,7 @@ async fn main() -> std::io::Result<()> {
|
||||
create_server_config(pool_clone.clone(), http_client_clone.clone(), app_state_clone.clone())
|
||||
})
|
||||
.keep_alive(std::time::Duration::from_secs(30))
|
||||
.shutdown_timeout(10)
|
||||
.backlog(1024)
|
||||
.bind(&addr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user