From: Sourav Bhowmik Date: Wed, 23 Sep 2026 18:31:48 +0000 (-0700) Subject: QUIC: fixed frame threshold with a small stream buffer size X-Git-Tag: release-1.31.7~17 X-Git-Url: https://git.kaiwu.me/ngx_http_auth_basic_module.html?a=commitdiff_plain;h=939334efff3575ce52597cc8c13d55821044ac57;p=nginx.git QUIC: fixed frame threshold with a small stream buffer size Since 2fb32ff (1.27.5), the connection frame threshold degraded to a few or zero frames when using a small stream buffer. The previously hardcoded minimum of 10000 frames is now used. --- diff --git a/src/event/quic/ngx_event_quic.c b/src/event/quic/ngx_event_quic.c index 09ce4b81e..1802ea6f2 100644 --- a/src/event/quic/ngx_event_quic.c +++ b/src/event/quic/ngx_event_quic.c @@ -322,6 +322,7 @@ ngx_quic_new_connection(ngx_connection_t *c, ngx_quic_conf_t *conf, qc->max_frames = (conf->max_concurrent_streams_uni + conf->max_concurrent_streams_bidi) * conf->stream_buffer_size / 2000; + qc->max_frames = ngx_max(qc->max_frames, 10000); if (pkt->validated && pkt->retried) { qc->tp.retry_scid.len = pkt->dcid.len;