From e8639e1b010d92b3d4cd9790cc9d9db61e761435 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Mon, 17 Mar 2025 13:00:02 +0000 Subject: [PATCH] fix(connectionhandler): Increase delay before cleaning up connections when session resumption is blocked due to missing SNI, allowing more natural socket termination. --- changelog.md | 6 ++++++ ts/00_commitinfo_data.ts | 2 +- ts/classes.pp.connectionhandler.ts | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 2ccfef7..33f42c2 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2025-03-17 - 4.1.11 - fix(connectionhandler) +Increase delay before cleaning up connections when session resumption is blocked due to missing SNI, allowing more natural socket termination. + +- Changed cleanup delay in ts/classes.pp.connectionhandler.ts from 300ms to 1000ms. +- This fix ensures that sockets get sufficient time to terminate gracefully. + ## 2025-03-16 - 4.1.10 - fix(connectionhandler) Increase delay timings for TLS alert transmission in session ticket blocking to allow graceful socket termination diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index e9747fc..20737d9 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: '4.1.10', + version: '4.1.11', description: 'A powerful proxy package that effectively handles high traffic, with features such as SSL/TLS support, port proxying, WebSocket handling, dynamic routing with authentication options, and automatic ACME certificate management.' } diff --git a/ts/classes.pp.connectionhandler.ts b/ts/classes.pp.connectionhandler.ts index b62a668..36901db 100644 --- a/ts/classes.pp.connectionhandler.ts +++ b/ts/classes.pp.connectionhandler.ts @@ -620,7 +620,7 @@ export class ConnectionHandler { // Log the cleanup but wait for natural closure setTimeout(() => { this.connectionManager.cleanupConnection(record, 'session_ticket_blocked_no_sni'); - }, 300); // Longer delay to let socket cleanup happen naturally + }, 1000); // Longer delay to let socket cleanup happen naturally }; if (writeSuccessful) {