修改部署文件;

This commit is contained in:
xiuting.xu
2026-05-07 16:47:08 +08:00
parent 19225edaa7
commit 897d168ceb
16 changed files with 148 additions and 17 deletions

View File

@@ -20,6 +20,7 @@ pub struct RtrService {
notify_tx: broadcast::Sender<()>,
shutdown_tx: watch::Sender<bool>,
connection_limiter: Arc<Semaphore>,
handshake_limiter: Arc<Semaphore>,
active_connections: Arc<AtomicUsize>,
config: RtrServiceConfig,
}
@@ -38,6 +39,7 @@ impl RtrService {
notify_tx,
shutdown_tx,
connection_limiter: Arc::new(Semaphore::new(config.max_connections)),
handshake_limiter: Arc::new(Semaphore::new(config.max_concurrent_handshakes)),
active_connections: Arc::new(AtomicUsize::new(0)),
config,
}
@@ -70,6 +72,7 @@ impl RtrService {
self.notify_tx.clone(),
self.shutdown_tx.clone(),
self.connection_limiter.clone(),
self.handshake_limiter.clone(),
self.active_connections.clone(),
self.config.clone(),
)
@@ -82,6 +85,7 @@ impl RtrService {
self.notify_tx.clone(),
self.shutdown_tx.clone(),
self.connection_limiter.clone(),
self.handshake_limiter.clone(),
self.active_connections.clone(),
self.config.clone(),
)
@@ -94,6 +98,7 @@ impl RtrService {
self.notify_tx.clone(),
self.shutdown_tx.clone(),
self.connection_limiter.clone(),
self.handshake_limiter.clone(),
self.active_connections.clone(),
self.config.clone(),
)