fix(connectionhandler): Remove unnecessary delay in TLS session ticket handling for connections without SNI
This commit is contained in:
		| @@ -3,6 +3,6 @@ | ||||
|  */ | ||||
| export const commitinfo = { | ||||
|   name: '@push.rocks/smartproxy', | ||||
|   version: '4.2.2', | ||||
|   version: '4.2.3', | ||||
|   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.' | ||||
| } | ||||
|   | ||||
| @@ -593,13 +593,7 @@ export class ConnectionHandler { | ||||
|                | ||||
|               // Function to handle the clean socket termination - but more gradually | ||||
|               const finishConnection = () => { | ||||
|                 // Give Chrome more time to process the alert before closing | ||||
|                 // We won't call destroy() at all - just end() and let the socket close naturally | ||||
|  | ||||
|                 // Log the cleanup but wait for natural closure | ||||
|                 setTimeout(() => { | ||||
|                   this.connectionManager.cleanupConnection(record, 'session_ticket_blocked_no_sni'); | ||||
|                 }, 1000); // Longer delay to let socket cleanup happen naturally | ||||
|                 this.connectionManager.cleanupConnection(record, 'session_ticket_blocked_no_sni'); | ||||
|               }; | ||||
|                | ||||
|               if (writeSuccessful) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user