ngtcp2: set max window size to 10x of initial (128KB)

Just as the quiche backend does

Closes #15392
This commit is contained in:
Kazuho Oku 2024-10-24 18:43:46 +09:00 committed by Daniel Stenberg
parent 358eae42a4
commit b34b757c2e
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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;