From bf8eef4e6800503e375a44694a226e5620ff0567 Mon Sep 17 00:00:00 2001 From: Ran Mishael Date: Thu, 11 Apr 2024 18:41:26 +0200 Subject: [PATCH] adding timeout to pruning --- protocol/lavasession/common.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/lavasession/common.go b/protocol/lavasession/common.go index 00bd892fca..add8cdcccb 100644 --- a/protocol/lavasession/common.go +++ b/protocol/lavasession/common.go @@ -25,8 +25,8 @@ import ( const ( MaxConsecutiveConnectionAttempts = 5 - TimeoutForEstablishingAConnection = 1 * time.Second - MaxSessionsAllowedPerProvider = 1000 // Max number of sessions allowed per provider + TimeoutForEstablishingAConnection = 1500 * time.Millisecond // 1.5 seconds + MaxSessionsAllowedPerProvider = 1000 // Max number of sessions allowed per provider MaxAllowedBlockListedSessionPerProvider = 3 MaximumNumberOfFailuresAllowedPerConsumerSession = 3 RelayNumberIncrement = 1