From 1f97aa71ecaa75dfd646495a13534b10405b500c Mon Sep 17 00:00:00 2001 From: Vladimir Homutov Date: Tue, 18 Jan 2022 12:49:55 +0300 Subject: QUIC: the "quic_active_connection_id_limit" directive. The directive sets corresponding transport parameter and limits number of created client ids. --- src/event/quic/ngx_event_quic.h | 1 + src/event/quic/ngx_event_quic_transport.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/event') diff --git a/src/event/quic/ngx_event_quic.h b/src/event/quic/ngx_event_quic.h index 9481fef62..195184754 100644 --- a/src/event/quic/ngx_event_quic.h +++ b/src/event/quic/ngx_event_quic.h @@ -40,6 +40,7 @@ typedef struct { size_t stream_buffer_size; ngx_uint_t max_concurrent_streams_bidi; ngx_uint_t max_concurrent_streams_uni; + ngx_uint_t active_connection_id_limit; ngx_int_t stream_close_code; ngx_int_t stream_reject_code_uni; ngx_int_t stream_reject_code_bidi; diff --git a/src/event/quic/ngx_event_quic_transport.c b/src/event/quic/ngx_event_quic_transport.c index 0ff42de2d..949d2691b 100644 --- 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_t *tp, ngx_quic_conf_t *qcf) 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; -- cgit