summaryrefslogtreecommitdiffhomepage
path: root/src/event
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2026-02-20 18:59:06 +0400
committerSergey Kandaurov <s.kandaurov@f5.com>2026-02-26 18:05:07 +0400
commit2c7252dcad9f10e9a5ad39f7bfdf1ef86a307528 (patch)
tree7b69739382bd40a19c951ee9e0eb34f109114a81 /src/event
parentedb4d2ffa746ba30bcae90e9527d5512b3de2c5b (diff)
downloadnginx-2c7252dcad9f10e9a5ad39f7bfdf1ef86a307528.tar.gz
nginx-2c7252dcad9f10e9a5ad39f7bfdf1ef86a307528.tar.bz2
QUIC: adjusted minimum packet size to send Stateless Reset.
Now to be valid, it also assumes the Connection ID we require from a client.
Diffstat (limited to 'src/event')
-rw-r--r--src/event/quic/ngx_event_quic_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/quic/ngx_event_quic_output.c b/src/event/quic/ngx_event_quic_output.c
index 8c3350504..25fe43de2 100644
--- a/src/event/quic/ngx_event_quic_output.c
+++ b/src/event/quic/ngx_event_quic_output.c
@@ -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