https://bz.apache.org/bugzilla/show_bug.cgi?id=63948

--- Comment #4 from Andy Wilkinson <awilkin...@pivotal.io> ---
Rodrigo, you can customise the Http2Protocol by adding the following bean to
your Spring Boot application:

@Bean
public TomcatConnectorCustomizer http2ProtocolCustomizer() {
  return (connector) -> {
    for (UpgradeProtocol upgradeProtocol: connector.findUpgradeProtocols()) {
      if (upgradeProtocol instanceof Http2Protocol) {
        Http2Protocol http2Protocol = (Http2Protocol)upgradeProtocol;
        http2Protocol.setOverheadContinuationThreshold(0);
        http2Protocol.setOverheadDataThreshold(0);
        http2Protocol.setOverheadWindowUpdateThreshold(0);
      }
    }
  };
}

With this bean in place in your sample application, I'm no longer able to
reproduce the problem with curl 7.54.0 on macOS. With the hint from Mark that
the problem may be client-specific, I also tried with curl 7.67.0 and the
problem does not occur, even without the customization of the Http2Protocol.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to