From 9cd05b9d5e54fd66eeaec59fc96bc61335f2bab1 Mon Sep 17 00:00:00 2001 From: KKRainbow <5665404+KKRainbow@users.noreply.github.com> Date: Tue, 17 Nov 2026 12:02:23 +0800 Subject: [PATCH] fix(proxy): wait for TCP tasks during packet proxy shutdown (#2847) --- easytier-core/src/gateway/proxy/service.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/easytier-core/src/gateway/proxy/service.rs b/easytier-core/src/gateway/proxy/service.rs index 582a7991..feeb40a9 100644 --- a/easytier-core/src/gateway/proxy/service.rs +++ b/easytier-core/src/gateway/proxy/service.rs @@ -413,6 +413,9 @@ where pub(crate) async fn stop(&self) { let _operation = self.operation.lock().await; self.stop_started(); + // Rollback only requests cancellation; normal shutdown must also wait + // for TCP tasks to release their listeners and streams. + self.tcp.stop_and_wait().await; } }