fix(PortProxy): Improve buffering and data handling during connection setup in PortProxy to prevent data loss

This commit is contained in:
2025-03-11 17:05:15 +00:00
parent 5ba8eb778f
commit 43378becd2
3 changed files with 152 additions and 83 deletions

View File

@ -1,5 +1,12 @@
# Changelog
## 2025-03-11 - 3.37.2 - fix(PortProxy)
Improve buffering and data handling during connection setup in PortProxy to prevent data loss
- Added a safeDataHandler and processDataQueue to buffer incoming data reliably during the TLS handshake phase
- Introduced a queue with pause/resume logic to avoid exceeding maxPendingDataSize and ensure all pending data is flushed before piping begins
- Refactored the piping setup to install the renegotiation handler only after proper data flushing
## 2025-03-11 - 3.37.1 - fix(PortProxy/SNI)
Refactor SNI extraction in PortProxy to use the dedicated SniHandler class