<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.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 name="jetty.http2c.maxConcurrentStreams" deprecated="http2.maxConcurrentStreams" default="1024"/></Set>
        <Set name="initialStreamRecvWindow"><Property name="jetty.http2c.initialStreamRecvWindow" default="524288"/></Set>
        <Set name="initialSessionRecvWindow"><Property name="jetty.http2c.initialSessionRecvWindow" default="1048576"/></Set>
        <Set name="maxSettingsKeys"><Property name="jetty.http2c.maxSettingsKeys" default="64"/></Set>
        <Set name="rateControlFactory">
          <New class="org.eclipse.jetty.http2.parser.WindowRateControl$Factory">
            <Arg type="int"><Property name="jetty.http2c.rateControl.maxEventsPerSecond" default="50"/></Arg>
          </New>
        </Set>
      </New>
    </Arg>
  </Call>
</Configure>
