Issue #4142 - module config for http2 maxSettingsKeys and RateControl

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2019-10-11 11:24:48 +11:00
parent fef5975b86
commit a96fb176f6
4 changed files with 34 additions and 0 deletions

View File

@ -9,6 +9,17 @@
<Set name="maxConcurrentStreams"><Property name="jetty.http2.maxConcurrentStreams" deprecated="http2.maxConcurrentStreams" default="128"/></Set>
<Set name="initialStreamRecvWindow"><Property name="jetty.http2.initialStreamRecvWindow" default="524288"/></Set>
<Set name="initialSessionRecvWindow"><Property name="jetty.http2.initialSessionRecvWindow" default="1048576"/></Set>
<Set name="maxSettingsKeys"><Property name="jetty.http2.maxSettingsKeys" default="64"/></Set>
<Set name="rateControl">
<New class="org.eclipse.jetty.http2.parser.WindowRateControl">
<Arg type="int"><Property name="jetty.http2.rateControl" default="20"/></Arg>
<Arg>
<Call class="java.time.Duration" name="ofSeconds" id="duration">
<Arg type="long">1</Arg>
</Call>
</Arg>
</New>
</Set>
</New>
</Arg>
</Call>

View File

@ -8,6 +8,17 @@
<Arg name="config"><Ref refid="httpConfig"/></Arg>
<Set name="maxConcurrentStreams"><Property name="jetty.http2c.maxConcurrentStreams" deprecated="http2.maxConcurrentStreams" default="1024"/></Set>
<Set name="initialStreamRecvWindow"><Property name="jetty.http2c.initialStreamRecvWindow" default="65535"/></Set>
<Set name="maxSettingsKeys"><Property name="jetty.http2.maxSettingsKeys" default="64"/></Set>
<Set name="rateControl">
<New class="org.eclipse.jetty.http2.parser.WindowRateControl">
<Arg type="int"><Property name="jetty.http2.rateControl" default="20"/></Arg>
<Arg>
<Call class="java.time.Duration" name="ofSeconds" id="duration">
<Arg type="long">1</Arg>
</Call>
</Arg>
</New>
</Set>
</New>
</Arg>
</Call>

View File

@ -29,3 +29,9 @@ etc/jetty-http2.xml
## Initial session receive window (client to server)
# jetty.http2.initialSessionRecvWindow=1048576
## The max number of keys in all SETTINGS frames
# jetty.http2.maxSettingsKeys=64
## Max number of bad frames and pings per second
# jetty.http2.rateControl=20

View File

@ -24,3 +24,9 @@ etc/jetty-http2c.xml
## Initial stream receive window (client to server)
# jetty.http2c.initialStreamRecvWindow=65535
## The max number of keys in all SETTINGS frames
# jetty.http2.maxSettingsKeys=64
## Max number of bad frames and pings per second
# jetty.http2.rateControl=20