aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Becker2013-07-24 07:12:09 (EDT)
committerThomas Becker2013-07-24 07:12:28 (EDT)
commit1a6698d43bd60db58f8759b435ce6ba924288d58 (patch)
tree18922360b5e8703f8fa4d520d9f247cc147c44a9
parentf4a41efaadeaca417f259475557d1f071864cf4c (diff)
downloadorg.eclipse.jetty.project-1a6698d43bd60db58f8759b435ce6ba924288d58.zip
org.eclipse.jetty.project-1a6698d43bd60db58f8759b435ce6ba924288d58.tar.gz
org.eclipse.jetty.project-1a6698d43bd60db58f8759b435ce6ba924288d58.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);