QUIC: adjusted minimum packet size to send Stateless Reset.

Now to be valid, it also assumes the Connection ID we require from a client.
This commit is contained in:
Sergey Kandaurov 2026-02-20 18:59:06 +04:00 committed by Sergey Kandaurov
parent edb4d2ffa7
commit 2c7252dcad

View file

@ -25,7 +25,7 @@
* packets. With the set of AEAD functions defined in [QUIC-TLS],
* short header packets that are smaller than 21 bytes are never valid.
*/
#define NGX_QUIC_MIN_PKT_LEN 21
#define NGX_QUIC_MIN_PKT_LEN 41 /* 21 + 20 (server cid length) */
#define NGX_QUIC_MIN_SR_PACKET 43 /* 5 rand + 16 srt + 22 padding */
#define NGX_QUIC_MAX_SR_PACKET 1200