Mercurial > hg > nginx
changeset 8891:c5155a0cb12f quic
QUIC: fixed processing of minimum packet size.
If packet needs to be expanded (for example Initial to 1200 bytes),
but path limit is less, such packet should not be created/sent.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Fri, 22 Oct 2021 12:59:44 +0300 |
parents | b4c7853b0488 |
children | d8ac4d3c24ac |
files | src/event/quic/ngx_event_quic_output.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/event/quic/ngx_event_quic_output.c Thu Sep 23 16:25:49 2021 +0300 +++ b/src/event/quic/ngx_event_quic_output.c Fri Oct 22 12:59:44 2021 +0300 @@ -184,6 +184,10 @@ min = (i == pad && p - dst < NGX_QUIC_MIN_INITIAL_SIZE) ? NGX_QUIC_MIN_INITIAL_SIZE - (p - dst) : 0; + if (min > len) { + continue; + } + n = ngx_quic_output_packet(c, ctx, p, len, min, qsock); if (n == NGX_ERROR) { return NGX_ERROR;