Mercurial > hg > nginx
diff src/event/ngx_event_quic.h @ 8585:02ee77f8d53d quic
QUIC: account packet header length in amplification limit.
Header length calculation is adjusted to account real connection id lengths
instead of worst case.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Thu, 15 Oct 2020 11:37:01 +0300 |
parents | a0631204d88a |
children | 93be5658a250 |
line wrap: on
line diff
--- a/src/event/ngx_event_quic.h Mon Oct 12 14:00:00 2020 +0100 +++ b/src/event/ngx_event_quic.h Thu Oct 15 11:37:01 2020 +0300 @@ -54,7 +54,8 @@ #define NGX_QUIC_STREAM_BUFSIZE 65536 -#define NGX_QUIC_SERVER_CID_LEN 20 +#define NGX_QUIC_MAX_CID_LEN 20 +#define NGX_QUIC_SERVER_CID_LEN NGX_QUIC_MAX_CID_LEN #define NGX_QUIC_SR_TOKEN_LEN 16