You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a server.max-http-header-size property to change the max header size limit, however, for tomcat Http2Protocol, that property doesn't take effect, it still uses the default 8kb limit.
philwebb
changed the title
Cannot configure tomcat http2 max header size via property
Tomcat server.max-http-header-size property is ignored when using HTTP/2
Jun 9, 2022
There is a
server.max-http-header-size
property to change the max header size limit, however, for tomcatHttp2Protocol
, that property doesn't take effect, it still uses the default 8kb limit.https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TomcatServletWebServerFactory.java#L339 I think this needs to be updated to configure the
Http2Protocol
withsetMaxHeaderSize
We can work around the issue with
TomcatConnectorCustomizer
, but ideally that single property can affect http2 as well to be consistentThe text was updated successfully, but these errors were encountered: