From ebdcfca253b3752c10f9e90021c230f789867263 Mon Sep 17 00:00:00 2001 From: Shihui Huang Date: Fri, 4 Oct 2024 14:47:30 -0400 Subject: [PATCH] [UNDERTOW-2481] Add DEFAULT_HTTP2_SETTINGS_INITIAL_WINDOW_SIZE --- core/src/main/java/io/undertow/UndertowOptions.java | 4 ++++ .../main/java/io/undertow/protocols/http2/Http2Channel.java | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/io/undertow/UndertowOptions.java b/core/src/main/java/io/undertow/UndertowOptions.java index b8d0b2553c..6279a8b2a4 100644 --- a/core/src/main/java/io/undertow/UndertowOptions.java +++ b/core/src/main/java/io/undertow/UndertowOptions.java @@ -285,6 +285,10 @@ public class UndertowOptions { * Max frame size for HTTP2. *
UNIT: Bytes. */ + public static final int DEFAULT_HTTP2_SETTINGS_INITIAL_WINDOW_SIZE = 65535; + /** + * Default value of {@link #HTTP2_SETTINGS_INITIAL_WINDOW_SIZE}.
UNIT: Bytes. + */ public static final Option HTTP2_SETTINGS_MAX_FRAME_SIZE = Option.simple(UndertowOptions.class, "HTTP2_SETTINGS_MAX_FRAME_SIZE", Integer.class); /** diff --git a/core/src/main/java/io/undertow/protocols/http2/Http2Channel.java b/core/src/main/java/io/undertow/protocols/http2/Http2Channel.java index da120f0fc9..95e4045259 100644 --- a/core/src/main/java/io/undertow/protocols/http2/Http2Channel.java +++ b/core/src/main/java/io/undertow/protocols/http2/Http2Channel.java @@ -145,8 +145,6 @@ public class Http2Channel extends AbstractFramedChannel