Mercurial > hg > nginx-quic
diff src/http/v3/ngx_http_v3_module.c @ 7731:d45325e90221 quic
Limit output QUIC packets with client max_packet_size.
Additionally, receive larger packets than 512 bytes.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Mon, 23 Mar 2020 18:47:17 +0300 |
parents | abb7c1a4c9d5 |
children | 8e54a17dabee |
line wrap: on
line diff
--- a/src/http/v3/ngx_http_v3_module.c +++ b/src/http/v3/ngx_http_v3_module.c @@ -233,11 +233,13 @@ ngx_http_v3_merge_srv_conf(ngx_conf_t *c // > 2 ^ 14 is invalid ngx_conf_merge_msec_value(conf->quic.max_ack_delay, - prev->quic.max_ack_delay, 25); + prev->quic.max_ack_delay, + NGX_QUIC_DEFAULT_MAX_ACK_DELAY); // < 1200 is invalid ngx_conf_merge_uint_value(conf->quic.max_packet_size, - prev->quic.max_packet_size, 65527); + prev->quic.max_packet_size, + NGX_QUIC_DEFAULT_MAX_PACKET_SIZE); ngx_conf_merge_uint_value(conf->quic.initial_max_data, prev->quic.initial_max_data, 10000000); @@ -261,7 +263,8 @@ ngx_http_v3_merge_srv_conf(ngx_conf_t *c // > 20 is invalid ngx_conf_merge_uint_value(conf->quic.ack_delay_exponent, - prev->quic.ack_delay_exponent, 3); + prev->quic.ack_delay_exponent, + NGX_QUIC_DEFAULT_ACK_DELAY_EXPONENT); ngx_conf_merge_uint_value(conf->quic.disable_active_migration, prev->quic.disable_active_migration, 1);