This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push: new c44cf6c Reduce the default HTTP/2 header list size from 4GB to 32kB c44cf6c is described below commit c44cf6cd2d2b06dc566d802ab9187d80a68fa5f0 Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu May 16 21:38:45 2019 +0100 Reduce the default HTTP/2 header list size from 4GB to 32kB Aligns Tomcat with typical HTTP/2 implementations. --- java/org/apache/coyote/http2/ConnectionSettingsBase.java | 2 +- webapps/docs/changelog.xml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/java/org/apache/coyote/http2/ConnectionSettingsBase.java b/java/org/apache/coyote/http2/ConnectionSettingsBase.java index 939e6d0..3cf2d8d 100644 --- a/java/org/apache/coyote/http2/ConnectionSettingsBase.java +++ b/java/org/apache/coyote/http2/ConnectionSettingsBase.java @@ -43,7 +43,7 @@ abstract class ConnectionSettingsBase<T extends Throwable> { static final long DEFAULT_MAX_CONCURRENT_STREAMS = UNLIMITED; static final int DEFAULT_INITIAL_WINDOW_SIZE = (1 << 16) - 1; static final int DEFAULT_MAX_FRAME_SIZE = MIN_MAX_FRAME_SIZE; - static final long DEFAULT_MAX_HEADER_LIST_SIZE = UNLIMITED; + static final long DEFAULT_MAX_HEADER_LIST_SIZE = 1 << 15; Map<Setting, Long> current = new EnumMap<>(Setting.class); Map<Setting, Long> pending = new EnumMap<>(Setting.class); diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index c1e6b03..2aeb8c8 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -132,6 +132,10 @@ <code>Http2Protocol</code> from 200 to 100 to align with typical defaults for HTTP/2 implementations. (markt) </update> + <update> + Reduce the default HTTP/2 header list size from 4GB to 32kB to align + with typical HTTP/2 implementations. (markt) + </update> </changelog> </subsection> <subsection name="Cluster"> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org