fix(cleanup): prevent event listener and log stream leaks, tighten smartProxy connection timeouts, and improve graceful shutdown behavior

This commit is contained in:
2026-02-26 17:14:51 +00:00
parent cfc4cf378f
commit 0c4e28455e
9 changed files with 157 additions and 75 deletions

View File

@@ -81,6 +81,8 @@ export class TunnelManager {
clearInterval(this.reconcileInterval);
this.reconcileInterval = null;
}
// Remove event listeners before stopping to prevent leaks
this.hub.removeAllListeners();
await this.hub.stop();
this.edgeStatuses.clear();
}