fix(zone-exec): ensure that the underlying process is killed when rpc is closed

This commit is contained in:
Alex Zenla
2024-08-24 23:51:48 -07:00
parent ec74bc8d2b
commit 53853a62b0
6 changed files with 49 additions and 10 deletions

View File

@ -16,6 +16,7 @@ use kratart::Runtime;
use log::{debug, info};
use reconcile::zone::ZoneReconciler;
use std::path::Path;
use std::time::Duration;
use std::{net::SocketAddr, path::PathBuf, str::FromStr, sync::Arc};
use tokio::{
fs,
@ -208,6 +209,8 @@ impl Daemon {
server = server.tls_config(tls_config)?;
}
server = server.http2_keepalive_interval(Some(Duration::from_secs(10)));
let server = server.add_service(ControlServiceServer::new(control_service));
info!("listening on address {}", addr);
match addr {