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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user