diff --git a/changelog.md b/changelog.md index a208cc0..9421018 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # Changelog +## 2025-02-26 - 3.14.2 - fix(PortProxy) +Fix cleanup timer reset for PortProxy + +- Resolved an issue where the cleanup timer in the PortProxy class did not reset correctly if both incoming and outgoing data events were triggered without clearing flags. + ## 2025-02-26 - 3.14.1 - fix(PortProxy) Increased default maxConnectionLifetime for PortProxy to 600000 ms diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 7c491a5..d1ac2ea 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartproxy', - version: '3.14.1', + version: '3.14.2', description: 'A robust and versatile proxy package designed to handle high workloads, offering features like SSL redirection, port proxying, WebSocket support, and customizable routing and authentication.' } diff --git a/ts/classes.portproxy.ts b/ts/classes.portproxy.ts index 3a9e133..5bfa003 100644 --- a/ts/classes.portproxy.ts +++ b/ts/classes.portproxy.ts @@ -316,12 +316,16 @@ export class PortProxy { incomingActive = true; if (incomingActive && outgoingActive) { resetCleanupTimer(); + incomingActive = false; + outgoingActive = false; } }); targetSocket.on('data', () => { outgoingActive = true; if (incomingActive && outgoingActive) { resetCleanupTimer(); + incomingActive = false; + outgoingActive = false; } }); }