BREAKING CHANGE(ts-api,rustproxy): remove deprecated TypeScript protocol and utility exports while hardening QUIC, HTTP/3, WebSocket, and rate limiter cleanup paths

This commit is contained in:
2026-03-21 22:23:38 +00:00
parent 33fdf42a70
commit fc04a0210b
78 changed files with 331 additions and 10754 deletions

View File

@@ -274,6 +274,12 @@ export class SocketHandlerServer {
backend.pipe(socket);
});
// Track backend socket for cleanup on stop()
this.activeSockets.add(backend);
backend.on('close', () => {
this.activeSockets.delete(backend);
});
// Connect timeout: if backend doesn't connect within 30s, destroy both
backend.setTimeout(30_000);