feat(http): Enable dynamic window adjustment (#1549)

This commit is contained in:
houseme
2026-01-19 09:53:17 +08:00
committed by GitHub
parent a9f499282c
commit 99be71e4c2
3 changed files with 53 additions and 53 deletions
+1
View File
@@ -280,6 +280,7 @@ pub async fn start_http_server(
conn_builder
.http2()
.timer(TokioTimer::new())
.adaptive_window(true)
.initial_stream_window_size(H2_INITIAL_STREAM_WINDOW_SIZE)
.initial_connection_window_size(H2_INITIAL_CONN_WINDOW_SIZE)
.max_frame_size(H2_MAX_FRAME_SIZE)