Issue #4142 - changes from review
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
5ff79b0bf1
commit
709e05a19f
|
@ -39,7 +39,7 @@ public class WindowRateControl implements RateControl
|
|||
private final int maxEvents;
|
||||
private final long window;
|
||||
|
||||
public static WindowRateControl ofSecond(int maxEvents)
|
||||
public static WindowRateControl fromEventsPerSecond(int maxEvents)
|
||||
{
|
||||
return new WindowRateControl(maxEvents, Duration.ofSeconds(1));
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<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">
|
||||
<Call class="org.eclipse.jetty.http2.parser.WindowRateControl" name="ofSecond">
|
||||
<Call class="org.eclipse.jetty.http2.parser.WindowRateControl" name="fromEventsPerSecond">
|
||||
<Arg type="int"><Property name="jetty.http2.rateControlWindow" default="20"/></Arg>
|
||||
</Call>
|
||||
</Set>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<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">
|
||||
<Call class="org.eclipse.jetty.http2.parser.WindowRateControl" name="ofSecond">
|
||||
<Call class="org.eclipse.jetty.http2.parser.WindowRateControl" name="fromEventsPerSecond">
|
||||
<Arg type="int"><Property name="jetty.http2.rateControlWindow" default="20"/></Arg>
|
||||
</Call>
|
||||
</Set>
|
||||
|
|
Loading…
Reference in New Issue