Skip to content

Commit cb6bc2a

Browse files
committed
[grid] Using a more conservative execution period for session request timeout
1 parent 4b429b0 commit cb6bc2a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

java/src/org/openqa/selenium/grid/sessionqueue/local/LocalNewSessionQueue.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,9 @@ public LocalNewSessionQueue(
122122
this.queue = new ConcurrentLinkedDeque<>();
123123
this.contexts = new ConcurrentHashMap<>();
124124

125-
// if retryPeriod is 0, we will schedule timeout checks every second
126-
long period = this.requestTimeout.isZero() ? 1000 : this.requestTimeout.toMillis();
125+
// if retryPeriod is 0, we will schedule timeout checks every 15 seconds
126+
// there is no need to run this more often
127+
long period = retryPeriod.isZero() ? 15000 : retryPeriod.toMillis();
127128
service.scheduleAtFixedRate(
128129
GuardedRunnable.guard(this::timeoutSessions),
129130
retryPeriod.toMillis(),

0 commit comments

Comments
 (0)