fix(connectionhandler): Increase delay before cleaning up connections when session resumption is blocked due to missing SNI, allowing more natural socket termination.

This commit is contained in:
2025-03-17 13:00:02 +00:00
parent 60a0ad106d
commit e8639e1b01
3 changed files with 8 additions and 2 deletions

View File

@ -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.'
}

View File

@ -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) {