From 5073ba4787a2a011b4d3f4cee887bc7676da1e13 Mon Sep 17 00:00:00 2001 From: Simone Bordet Date: Tue, 9 Aug 2016 16:02:34 +0200 Subject: [PATCH] Fixes #826 - Better default for HTTP/2's max concurrent streams. Defaulted to 128 max concurrent streams. --- .../http2/server/AbstractHTTP2ServerConnectionFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty-http2/http2-server/src/main/java/org/eclipse/jetty/http2/server/AbstractHTTP2ServerConnectionFactory.java b/jetty-http2/http2-server/src/main/java/org/eclipse/jetty/http2/server/AbstractHTTP2ServerConnectionFactory.java index a1fdb2cdc10..fa402070f8a 100644 --- a/jetty-http2/http2-server/src/main/java/org/eclipse/jetty/http2/server/AbstractHTTP2ServerConnectionFactory.java +++ b/jetty-http2/http2-server/src/main/java/org/eclipse/jetty/http2/server/AbstractHTTP2ServerConnectionFactory.java @@ -46,7 +46,7 @@ public abstract class AbstractHTTP2ServerConnectionFactory extends AbstractConne private int maxDynamicTableSize = 4096; private int initialStreamRecvWindow = FlowControlStrategy.DEFAULT_WINDOW_SIZE; private int initialSessionRecvWindow = FlowControlStrategy.DEFAULT_WINDOW_SIZE; - private int maxConcurrentStreams = -1; + private int maxConcurrentStreams = 128; private int maxHeaderBlockFragment = 0; private FlowControlStrategy.Factory flowControlStrategyFactory = () -> new BufferingFlowControlStrategy(0.5F); private ExecutionStrategy.Factory executionStrategyFactory = new ProduceExecuteConsume.Factory();