aboutsummaryrefslogtreecommitdiff
path: root/src/http/v3/ngx_http_v3_module.c
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2020-03-23 18:47:17 +0300
committerRoman Arutyunyan <arut@nginx.com>2020-03-23 18:47:17 +0300
commit72b0a1b32a8a9527fccf1d71ee1fc54859cffd4c (patch)
treea0c181f92027ac93210f016ebf23832716ccf3f6 /src/http/v3/ngx_http_v3_module.c
parent280c18bdceaa2f3d3abac9bf2cd9489a6c23176f (diff)
downloadnginx-72b0a1b32a8a9527fccf1d71ee1fc54859cffd4c.tar.gz
nginx-72b0a1b32a8a9527fccf1d71ee1fc54859cffd4c.zip
Limit output QUIC packets with client max_packet_size.
Additionally, receive larger packets than 512 bytes.
Diffstat (limited to 'src/http/v3/ngx_http_v3_module.c')
-rw-r--r--src/http/v3/ngx_http_v3_module.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/http/v3/ngx_http_v3_module.c b/src/http/v3/ngx_http_v3_module.c
index 20137b377..385838df4 100644
--- 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 *cf, void *parent, void *child)
// > 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 *cf, void *parent, void *child)
// > 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);