Skip to content

Commit 7f1c000

Browse files
authored
Fixes sni.yaml-configured initial window size (#12531)
Without this fix, the sni.yaml configured http2_initial_window size is never sent to the client.
1 parent 52f9b7b commit 7f1c000

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/proxy/http2/Http2ConnectionState.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,10 +1369,7 @@ Http2ConnectionState::send_connection_preface()
13691369
configured_settings.set(HTTP2_SETTINGS_MAX_CONCURRENT_STREAMS, _adjust_concurrent_stream());
13701370

13711371
uint32_t const configured_initial_window_size = this->_get_configured_receive_session_window_size();
1372-
if (this->_has_dynamic_stream_window()) {
1373-
// Since this is the beginning of the connection and there are no streams
1374-
// yet, we can just set the stream window size to fill the entire session
1375-
// window size.
1372+
if (configured_initial_window_size > HTTP2_INITIAL_WINDOW_SIZE) {
13761373
configured_settings.set(HTTP2_SETTINGS_INITIAL_WINDOW_SIZE, configured_initial_window_size);
13771374
}
13781375

0 commit comments

Comments
 (0)