fix(PortProxy): Adjust inactivity threshold to a random value between 20 and 30 minutes for better variability

This commit is contained in:
2025-03-05 18:07:39 +00:00
parent 2013d03ac6
commit 4fd5524a0f
3 changed files with 7 additions and 2 deletions

View File

@@ -1211,7 +1211,7 @@ export class PortProxy {
// Skip inactivity check if disabled
if (!this.settings.disableInactivityCheck) {
// Inactivity check - use protocol-specific values
let inactivityThreshold = 180000; // 3 minutes default
let inactivityThreshold = Math.floor(Math.random() * (1800000 - 1200000 + 1)) + 1200000; // random between 20 and 30 minutes
// Set protocol-specific inactivity thresholds
if (record.protocolType === 'http' && record.isPooledConnection) {