summaryrefslogtreecommitdiffhomepage
path: root/src/http/v3
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2020-11-10 00:32:56 +0300
committerSergey Kandaurov <pluknet@nginx.com>2020-11-10 00:32:56 +0300
commitb19923f91bd41f17470c0d4538ba15adcc0b95e8 (patch)
tree46f5758ae9d63dbc24ad52c0c8fdc9720e151706 /src/http/v3
parent7f434603875b35998f09e43e8ed27381bb8094cb (diff)
downloadnginx-b19923f91bd41f17470c0d4538ba15adcc0b95e8.tar.gz
nginx-b19923f91bd41f17470c0d4538ba15adcc0b95e8.tar.bz2
QUIC: multiple versions support in ALPN.
Previously, a version based on NGX_QUIC_DRAFT_VERSION was always set. Now it is taken from the negotiated QUIC version that may differ.
Diffstat (limited to 'src/http/v3')
-rw-r--r--src/http/v3/ngx_http_v3.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/http/v3/ngx_http_v3.h b/src/http/v3/ngx_http_v3.h
index aab27b3ac..c244ab861 100644
--- a/src/http/v3/ngx_http_v3.h
+++ b/src/http/v3/ngx_http_v3.h
@@ -15,9 +15,8 @@
#include <ngx_http_v3_parse.h>
-#define NGX_HTTP_V3_ALPN(s) NGX_HTTP_V3_ALPN_DRAFT(s)
-#define NGX_HTTP_V3_ALPN_DRAFT(s) "\x05h3-" #s
-#define NGX_HTTP_V3_ALPN_ADVERTISE NGX_HTTP_V3_ALPN(NGX_QUIC_DRAFT_VERSION)
+#define NGX_HTTP_V3_ALPN_ADVERTISE "\x02h3"
+#define NGX_HTTP_V3_ALPN_DRAFT_FMT "\x05h3-%02uD"
#define NGX_HTTP_V3_VARLEN_INT_LEN 4
#define NGX_HTTP_V3_PREFIX_INT_LEN 11