fix(rust-userspace-nat): improve TCP session backpressure, buffering, and idle cleanup in userspace NAT

This commit is contained in:
2026-03-31 08:58:27 +00:00
parent fe9c693ac8
commit 99a8a29ff1
3 changed files with 103 additions and 49 deletions

View File

@@ -1,5 +1,13 @@
# Changelog
## 2026-03-31 - 1.16.5 - fix(rust-userspace-nat)
improve TCP session backpressure, buffering, and idle cleanup in userspace NAT
- apply proper bridge-channel backpressure by reserving channel capacity before consuming smoltcp TCP data
- defer bridge sender initialization until the bridge task starts and track TCP session activity timestamps
- cap per-session pending TCP send buffers at 512KB and abort stalled sessions when clients cannot keep up
- add idle TCP session cleanup and switch NAT polling to a dynamic smoltcp-driven delay
## 2026-03-31 - 1.16.4 - fix(server)
register preloaded WireGuard clients as peers on server startup