mirror of
https://github.com/nginx/nginx.git
synced 2025-01-20 18:42:59 +08:00
QUIC: consider max_ack_delay=16384 invalid.
As per RFC 9000: Values of 2^14 or greater are invalid.
This commit is contained in:
parent
8f8f484004
commit
d54d551e2a
@ -176,7 +176,7 @@ ngx_quic_apply_transport_params(ngx_connection_t *c, ngx_quic_tp_t *ctp)
|
|||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ctp->max_ack_delay > 16384) {
|
if (ctp->max_ack_delay >= 16384) {
|
||||||
qc->error = NGX_QUIC_ERR_TRANSPORT_PARAMETER_ERROR;
|
qc->error = NGX_QUIC_ERR_TRANSPORT_PARAMETER_ERROR;
|
||||||
qc->error_reason = "invalid max_ack_delay";
|
qc->error_reason = "invalid max_ack_delay";
|
||||||
|
|
||||||
|
@ -394,7 +394,7 @@ ngx_http_quic_max_ack_delay(ngx_conf_t *cf, void *post, void *data)
|
|||||||
{
|
{
|
||||||
ngx_msec_t *sp = data;
|
ngx_msec_t *sp = data;
|
||||||
|
|
||||||
if (*sp > 16384) {
|
if (*sp >= 16384) {
|
||||||
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
||||||
"\"quic_max_ack_delay\" must be less than 16384");
|
"\"quic_max_ack_delay\" must be less than 16384");
|
||||||
|
|
||||||
|
@ -354,7 +354,7 @@ ngx_stream_quic_max_ack_delay(ngx_conf_t *cf, void *post, void *data)
|
|||||||
{
|
{
|
||||||
ngx_msec_t *sp = data;
|
ngx_msec_t *sp = data;
|
||||||
|
|
||||||
if (*sp > 16384) {
|
if (*sp >= 16384) {
|
||||||
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
||||||
"\"quic_max_ack_delay\" must be less than 16384");
|
"\"quic_max_ack_delay\" must be less than 16384");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user