]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ngtcp2: set max window size to 10x of initial (128KB)
authorKazuho Oku <kazuhooku@gmail.com>
Thu, 24 Oct 2024 09:43:46 +0000 (18:43 +0900)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 24 Oct 2024 12:47:26 +0000 (14:47 +0200)
Just as the quiche backend does

Closes #15392

lib/vquic/curl_ngtcp2.c

index ef9635dcf720160d02fc6e930d06a1a8c571fb42..bf8381e6dd57b9ed112230135b90b9f48c394f8d 100644 (file)
@@ -429,7 +429,7 @@ static void quic_settings(struct cf_ngtcp2_ctx *ctx,
   s->initial_ts = pktx->ts;
   s->handshake_timeout = QUIC_HANDSHAKE_TIMEOUT;
   s->max_window = 100 * ctx->max_stream_window;
-  s->max_stream_window = ctx->max_stream_window;
+  s->max_stream_window = 10 * ctx->max_stream_window;
 
   t->initial_max_data = 10 * ctx->max_stream_window;
   t->initial_max_stream_data_bidi_local = ctx->max_stream_window;