fix(connection): improve connection handling and timeouts

This commit is contained in:
2026-02-26 16:58:30 +00:00
parent 697d51a9d4
commit 94266222fe
5 changed files with 46 additions and 12 deletions
+7
View File
@@ -1,5 +1,12 @@
# Changelog
## 2026-02-26 - 25.8.2 - fix(connection)
improve connection handling and timeouts
- Flush logs on process beforeExit and avoid calling process.exit in SIGINT/SIGTERM handlers to preserve host graceful shutdown
- Store protocol entries with a createdAt timestamp in ProtocolDetector and remove stale entries older than 30s to prevent leaked state from abandoned handshakes or port scanners
- Add backend connect timeout (30s) and idle timeouts (5 minutes) for dynamic forwards; destroy sockets on timeout and emit logs for timeout events
## 2026-02-25 - 25.8.1 - fix(allocator)
switch global allocator from tikv-jemallocator to mimalloc