File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
java/server/src/org/openqa/selenium/remote/server Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,11 @@ public void init() throws ServletException {
108
108
inactiveSessionTimeoutMs ,
109
109
individualCommandTimeoutMs );
110
110
}
111
+
112
+ // Alright. It's nonsense that the individualCommandTimeout isn't a sensible value.
113
+ if (individualCommandTimeoutMs == 0 ) {
114
+ individualCommandTimeoutMs = Math .min (inactiveSessionTimeoutMs , Long .MAX_VALUE );
115
+ }
111
116
}
112
117
113
118
@ VisibleForTesting
@@ -289,8 +294,7 @@ protected void handleRequest(
289
294
}
290
295
});
291
296
try {
292
- long timeout = individualCommandTimeoutMs == 0 ? Long .MAX_VALUE : individualCommandTimeoutMs ;
293
- future .get (timeout , MILLISECONDS );
297
+ future .get (getIndividualCommandTimeoutMs (), MILLISECONDS );
294
298
} catch (InterruptedException e ) {
295
299
writeThrowable (servletResponse , e );
296
300
} catch (ExecutionException e ) {
You can’t perform that action at this time.
0 commit comments