Skip to content

Commit b17f30b

Browse files
zchandreastt
authored andcommitted
Make the jettyMaxThreads parameter actually be effective
Calling server.start() before setting a new thread pool caused the new thread pool to be ignored. Moved the call to server.start() to after the thread pool has been configured, which now makes the server use the newly configured thread pool instead of the default one. Fixes "Selenium grid Jetty server thread count cannot be configured by parameter jettyMaxThreads": https://code.google.com/p/selenium/issues/detail?id=7240 Signed-off-by: Andreas Tolfsen <ato@mozilla.com>
1 parent 43db645 commit b17f30b

File tree

1 file changed

+1
-1
lines changed
  • java/server/src/org/openqa/grid/web

1 file changed

+1
-1
lines changed

java/server/src/org/openqa/grid/web/Hub.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,12 @@ public String getHost() {
164164

165165
public void start() throws Exception {
166166
initServer();
167-
server.start();
168167
if (maxThread>0){
169168
QueuedThreadPool pool = new QueuedThreadPool();
170169
pool.setMaxThreads(maxThread);
171170
server.setThreadPool(pool);
172171
}
172+
server.start();
173173
}
174174

175175
public void stop() throws Exception {

0 commit comments

Comments
 (0)