We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b429b0 commit cb6bc2aCopy full SHA for cb6bc2a
1 file changed
java/src/org/openqa/selenium/grid/sessionqueue/local/LocalNewSessionQueue.java
@@ -122,8 +122,9 @@ public LocalNewSessionQueue(
122
this.queue = new ConcurrentLinkedDeque<>();
123
this.contexts = new ConcurrentHashMap<>();
124
125
- // if retryPeriod is 0, we will schedule timeout checks every second
126
- long period = this.requestTimeout.isZero() ? 1000 : this.requestTimeout.toMillis();
+ // if retryPeriod is 0, we will schedule timeout checks every 15 seconds
+ // there is no need to run this more often
127
+ long period = retryPeriod.isZero() ? 15000 : retryPeriod.toMillis();
128
service.scheduleAtFixedRate(
129
GuardedRunnable.guard(this::timeoutSessions),
130
retryPeriod.toMillis(),
0 commit comments