fix(proxy): wait for TCP tasks during packet proxy shutdown (#2847)

This commit is contained in:
KKRainbow
2026-11-17 12:02:23 +08:00
committed by GitHub
parent ff442388d4
commit 9cd05b9d5e
@@ -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;
}
}