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

This commit is contained in:
Alex Zenla
2024-08-25 00:07:37 -07:00
committed by GitHub
parent 41aa1aa707
commit 96ccbd50bb
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 {