embedded SPDYServer test - save one line of code by setting maxThreads in constructor
This commit is contained in:
parent
f4a41efaad
commit
1a6698d43b
|
@ -55,8 +55,7 @@ public class SpdyServer
|
||||||
System.setProperty("jetty.home",jetty_home);
|
System.setProperty("jetty.home",jetty_home);
|
||||||
|
|
||||||
// Setup Threadpool
|
// Setup Threadpool
|
||||||
QueuedThreadPool threadPool = new QueuedThreadPool();
|
QueuedThreadPool threadPool = new QueuedThreadPool(512);
|
||||||
threadPool.setMaxThreads(500);
|
|
||||||
|
|
||||||
Server server = new Server(threadPool);
|
Server server = new Server(threadPool);
|
||||||
server.manage(threadPool);
|
server.manage(threadPool);
|
||||||
|
|
Loading…
Reference in New Issue