comparison src/event/quic/ngx_event_quic.c @ 8507:f8ad3dd142ad quic

QUIC: consider max_ack_delay=16384 invalid. As per RFC 9000: Values of 2^14 or greater are invalid.
author Roman Arutyunyan <arut@nginx.com>
date Wed, 30 Jun 2021 13:47:38 +0300
parents 4715f3e669f1
children 7f29db5294bd
comparison
equal deleted inserted replaced
8506:e96c20b6f655 8507:f8ad3dd142ad
174 ngx_log_error(NGX_LOG_INFO, c->log, 0, 174 ngx_log_error(NGX_LOG_INFO, c->log, 0,
175 "quic ack_delay_exponent is invalid"); 175 "quic ack_delay_exponent is invalid");
176 return NGX_ERROR; 176 return NGX_ERROR;
177 } 177 }
178 178
179 if (ctp->max_ack_delay > 16384) { 179 if (ctp->max_ack_delay >= 16384) {
180 qc->error = NGX_QUIC_ERR_TRANSPORT_PARAMETER_ERROR; 180 qc->error = NGX_QUIC_ERR_TRANSPORT_PARAMETER_ERROR;
181 qc->error_reason = "invalid max_ack_delay"; 181 qc->error_reason = "invalid max_ack_delay";
182 182
183 ngx_log_error(NGX_LOG_INFO, c->log, 0, 183 ngx_log_error(NGX_LOG_INFO, c->log, 0,
184 "quic max_ack_delay is invalid"); 184 "quic max_ack_delay is invalid");