mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 11:31:24 +00:00
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.
This commit is contained in:
parent
f5d0c6db67
commit
dbb59fba8c
1 changed files with 4 additions and 0 deletions
|
|
@ -184,6 +184,10 @@ ngx_quic_create_datagrams(ngx_connection_t *c, ngx_quic_socket_t *qsock)
|
|||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue