Deprecate server.max-http-header-size in favor of new server.max-http-request-header-size property
See original GitHub issueI am using the embedded Jetty Container and came across the problem that the server.max-http-header-size
property is “only” used to set the size of the request header. Jetty differentiates between request and response header size. I know, that you can set the response header size by providing your own customizer. But the name of the property indicates that it affects all header sizes not only the request ones. So wouldn’t it make sense to use the property on both response and request header size?
As of now the JettyWebServerFactoryCustomizer
only uses setRequestHeaderSize
but in my opinion should also use setResponseHeaderSize
I am more than happy to provide the minimal change in a pull request if this change is seen as useful.
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (8 by maintainers)
Top Results From Across the Web
Max-HTTP-Header-Size in Spring Boot 2 - Baeldung
Learn how to set and use the max-http-header-size property in a Spring ... The HTTP header values are restricted by server implementations.
Read more >Spring Boot 3 Upgrade Guide
max-http-header-size has been deprecated and is now replaced by server.max-http-request-header-size and this property can now only be used to ...
Read more >Apache Tomcat 8 Configuration Reference (8.5.84)
Connections are queued inside the server socket created by the Connector ... This default may be modified if the deprecated system property ......
Read more >How to set max-http-header-size in spring boot 2.x application
You should set on the "application.properties" file: server.max-http-header-size=48000. 48000 is an example of an excessive header, ...
Read more >Common Application Properties - Spring
Name Description Default...
spring.cassandra.config Location of the configuration file to use.
spring.cassandra.controlconnection.timeout Timeout to use for control queries. 5s
spring.cassandra.keyspace‑name Keyspace name to use.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, please raise an issue. I suspect we’ll separate them out into two new settings with the old setting being used as a default and removed for 10.1.x onwards.
We’re going to introduce
server.max-http-request-header-size
. We’d like to keepserver.max-http-header-size
in a deprecated form but that will require us to keep its current behaviour. If both properties are set, we should throw an exception. If that proves to be too complicated, we may just removeserver.max-http-header-size
.We are not going to introduce Jetty- and Tomcat-specific properties for the response header size at this time. We may do so in the future, however.