diff src/event/quic/ngx_event_quic_transport.c @ 8970:7106a918a277 quic

QUIC: the "quic_active_connection_id_limit" directive. The directive sets corresponding transport parameter and limits number of created client ids.
author Vladimir Homutov <vl@nginx.com>
date Tue, 18 Jan 2022 12:49:55 +0300
parents d6ef13c5fd8e
children d8865baab732
line wrap: on
line diff
--- a/src/event/quic/ngx_event_quic_transport.c
+++ b/src/event/quic/ngx_event_quic_transport.c
@@ -1974,7 +1974,7 @@ ngx_quic_init_transport_params(ngx_quic_
     tp->max_ack_delay = NGX_QUIC_DEFAULT_MAX_ACK_DELAY;
     tp->ack_delay_exponent = NGX_QUIC_DEFAULT_ACK_DELAY_EXPONENT;
 
-    tp->active_connection_id_limit = 2;
+    tp->active_connection_id_limit = qcf->active_connection_id_limit;
     tp->disable_active_migration = qcf->disable_active_migration;
 
     return NGX_OK;