fix(PortProxy): Adjust inactivity threshold to a random value between 20 and 30 minutes for better variability
This commit is contained in:
parent
2013d03ac6
commit
4fd5524a0f
@ -1,5 +1,10 @@
|
||||
# Changelog
|
||||
|
||||
## 2025-03-05 - 3.25.1 - fix(PortProxy)
|
||||
Adjust inactivity threshold to a random value between 20 and 30 minutes for better variability
|
||||
|
||||
- Modified inactivity threshold calculation within PortProxy to use a random value between 1.2 and 1.8 million milliseconds.
|
||||
|
||||
## 2025-03-05 - 3.25.0 - feat(PortProxy)
|
||||
Enhanced PortProxy with detailed logging, protocol detection, and rate limiting.
|
||||
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@push.rocks/smartproxy',
|
||||
version: '3.25.0',
|
||||
version: '3.25.1',
|
||||
description: 'A powerful proxy package that effectively handles high traffic, with features such as SSL/TLS support, port proxying, WebSocket handling, and dynamic routing with authentication options.'
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user