Spring Boot version: 2.2.5.RELEASE Project: Spring Boot Autoconfigure

The ServerProperties class defines some properties such as MaxHttpHeaderSize. The reason why I think the MaxInitialLineLength property should be added is because there's currently no way to define it when working with reactor netty. Even trying to define it by using NettyWebServerFactoryCustomizers doesn't work because the HttpRequestDecoder customizers get overridden by the one used by spring boot to define the MaxHttpHeaderSize property.

This issue is semi-related to this Spring Cloud Gateway's PR that added the same property but for the http client.

Comment From: wilkinsona

Even trying to define it by using NettyWebServerFactoryCustomizers doesn't work because the HttpRequestDecoder customizers get overridden by the one used by spring boot to define the MaxHttpHeaderSize property.

Spring Boot's customizer has an order of 0. If you order yours to run after Spring Boot's the configuration that it applies will not be overridden.

Comment From: deci1

Spring Boot's customizer has an order of 0. If you order yours to run after Spring Boot's the configuration that it applies will not be overridden.

Thanks for the feedback!

Comment From: wilkinsona

Closing in favour of #22367.