aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Becker2013-07-24 07:12:09 (EDT)
committerThomas Becker2013-07-24 07:14:37 (EDT)
commit86e8cf7b299778ad7fdf6aaa68a49f4ff56effcd (patch)
tree76362e49b491310f9e5ddd8333fb91ef78ecd9c4
parent0f702624a3011e3e1a953a4f0df468537caccd0d (diff)
downloadorg.eclipse.jetty.project-86e8cf7b299778ad7fdf6aaa68a49f4ff56effcd.zip
org.eclipse.jetty.project-86e8cf7b299778ad7fdf6aaa68a49f4ff56effcd.tar.gz
org.eclipse.jetty.project-86e8cf7b299778ad7fdf6aaa68a49f4ff56effcd.tar.bz2
embedded SPDYServer test - save one line of code by setting maxThreads in constructor
-rw-r--r--examples/embedded/src/main/java/org/eclipse/jetty/embedded/SpdyServer.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/embedded/src/main/java/org/eclipse/jetty/embedded/SpdyServer.java b/examples/embedded/src/main/java/org/eclipse/jetty/embedded/SpdyServer.java
index c2aa948..302f434 100644
--- a/examples/embedded/src/main/java/org/eclipse/jetty/embedded/SpdyServer.java
+++ b/examples/embedded/src/main/java/org/eclipse/jetty/embedded/SpdyServer.java
@@ -55,8 +55,7 @@ public class SpdyServer
System.setProperty("jetty.home",jetty_home);
// Setup Threadpool
- QueuedThreadPool threadPool = new QueuedThreadPool();
- threadPool.setMaxThreads(500);
+ QueuedThreadPool threadPool = new QueuedThreadPool(512);
Server server = new Server(threadPool);
server.manage(threadPool);