From 939334efff3575ce52597cc8c13d55821044ac57 Mon Sep 17 00:00:00 2001 From: Sourav Bhowmik Date: Wed, 23 Sep 2026 11:31:48 -0700 Subject: [PATCH] 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. --- src/event/quic/ngx_event_quic.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.47.3