Merged branch 'jetty-10.0.x' into 'jetty-11.0.x'.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
commit
2e725dceb5
|
@ -12,7 +12,7 @@
|
|||
<Set name="maxSettingsKeys"><Property name="jetty.http2.maxSettingsKeys" default="64"/></Set>
|
||||
<Set name="rateControlFactory">
|
||||
<New class="org.eclipse.jetty.http2.parser.WindowRateControl$Factory">
|
||||
<Arg type="int"><Property name="jetty.http2.rateControl.maxEventsPerSecond" default="20"/></Arg>
|
||||
<Arg type="int"><Property name="jetty.http2.rateControl.maxEventsPerSecond" default="50"/></Arg>
|
||||
</New>
|
||||
</Set>
|
||||
</New>
|
||||
|
|
|
@ -8,11 +8,11 @@
|
|||
<Arg name="config"><Ref refid="httpConfig"/></Arg>
|
||||
<Set name="maxConcurrentStreams" property="jetty.http2c.maxConcurrentStreams"/>
|
||||
<Set name="initialStreamRecvWindow" property="jetty.http2c.initialStreamRecvWindow"/>
|
||||
<Set name="initialSessionRecvWindow" property="jetty.http2.initialSessionRecvWindow"/>
|
||||
<Set name="maxSettingsKeys" property="jetty.http2.maxSettingsKeys"/>
|
||||
<Set name="initialSessionRecvWindow" property="jetty.http2c.initialSessionRecvWindow"/>
|
||||
<Set name="maxSettingsKeys" property="jetty.http2c.maxSettingsKeys"/>
|
||||
<Set name="rateControlFactory">
|
||||
<New class="org.eclipse.jetty.http2.parser.WindowRateControl$Factory">
|
||||
<Arg type="int"><Property name="jetty.http2.rateControl.maxEventsPerSecond" default="20"/></Arg>
|
||||
<Arg type="int"><Property name="jetty.http2c.rateControl.maxEventsPerSecond" default="50"/></Arg>
|
||||
</New>
|
||||
</Set>
|
||||
</New>
|
||||
|
|
|
@ -33,5 +33,5 @@ etc/jetty-http2.xml
|
|||
|
||||
## Specifies the maximum number of bad frames and pings per second,
|
||||
## after which a session is closed to avoid denial of service attacks.
|
||||
# jetty.http2.rateControl.maxEventsPerSecond=20
|
||||
# jetty.http2.rateControl.maxEventsPerSecond=50
|
||||
# end::documentation[]
|
||||
|
|
|
@ -20,16 +20,16 @@ etc/jetty-http2c.xml
|
|||
## Specifies the maximum number of concurrent requests per session.
|
||||
# jetty.http2c.maxConcurrentStreams=128
|
||||
|
||||
## Specifies the initial stream receive window (client to server) in bytes.
|
||||
## Specifies the initial stream receive window (client to server) in bytes.
|
||||
# jetty.http2c.initialStreamRecvWindow=524288
|
||||
|
||||
## Specifies the initial session receive window (client to server) in bytes.
|
||||
# jetty.http2.initialSessionRecvWindow=1232896
|
||||
# jetty.http2c.initialSessionRecvWindow=1232896
|
||||
|
||||
## Specifies the maximum number of keys in all SETTINGS frames received by a session.
|
||||
# jetty.http2.maxSettingsKeys=64
|
||||
# jetty.http2c.maxSettingsKeys=64
|
||||
|
||||
## Specifies the maximum number of bad frames and pings per second,
|
||||
## after which a session is closed to avoid denial of service attacks.
|
||||
# jetty.http2.rateControl.maxEventsPerSecond=20
|
||||
# jetty.http2c.rateControl.maxEventsPerSecond=50
|
||||
# end::documentation[]
|
||||
|
|
|
@ -61,7 +61,7 @@ public abstract class AbstractHTTP2ServerConnectionFactory extends AbstractConne
|
|||
private int maxFrameLength = Frame.DEFAULT_MAX_LENGTH;
|
||||
private int maxSettingsKeys = SettingsFrame.DEFAULT_MAX_KEYS;
|
||||
private boolean connectProtocolEnabled = true;
|
||||
private RateControl.Factory rateControlFactory = new WindowRateControl.Factory(20);
|
||||
private RateControl.Factory rateControlFactory = new WindowRateControl.Factory(50);
|
||||
private FlowControlStrategy.Factory flowControlStrategyFactory = () -> new BufferingFlowControlStrategy(0.5F);
|
||||
private long streamIdleTimeout;
|
||||
private boolean useInputDirectByteBuffers;
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -51,7 +51,7 @@
|
|||
<weld.version>4.0.2.Final</weld.version>
|
||||
<jboss.logging.version>3.4.2.Final</jboss.logging.version>
|
||||
<jetty.perf-helper.version>1.0.6</jetty.perf-helper.version>
|
||||
<ant.version>1.10.9</ant.version>
|
||||
<ant.version>1.10.11</ant.version>
|
||||
<!-- OSGI import-package -->
|
||||
<osgi.slf4j.import.packages>org.slf4j;version="[1.7,3.0)", org.slf4j.event;version="[1.7,3.0)", org.slf4j.helpers;version="[1.7,3.0)", org.slf4j.spi;version="[1.7,3.0)"</osgi.slf4j.import.packages>
|
||||
|
||||
|
|
Loading…
Reference in New Issue