<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_10_0.dtd">

<Configure id="httpConnector" class="org.eclipse.jetty.server.ServerConnector">
  <Call name="addConnectionFactory">
    <Arg>
      <New class="org.eclipse.jetty.http2.server.HTTP2CServerConnectionFactory">
        <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.http2c.initialSessionRecvWindow"/>
        <Set name="maxSettingsKeys" property="jetty.http2c.maxSettingsKeys"/>
        <Set name="rateControlFactory">
          <New class="org.eclipse.jetty.http2.WindowRateControl$Factory">
            <Arg type="int"><Property name="jetty.http2c.rateControl.maxEventsPerSecond" default="50"/></Arg>
          </New>
        </Set>
      </New>
    </Arg>
  </Call>
</Configure>
