Mercurial > hg > nginx-quic
comparison src/http/v3/ngx_http_v3.h @ 8196:e0947c952d43 quic
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.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 10 Nov 2020 00:32:56 +0300 |
parents | 0596fe1aee16 |
children | 279ad36f2f4b |
comparison
equal
deleted
inserted
replaced
8195:4416b7ab0a27 | 8196:e0947c952d43 |
---|---|
13 #include <ngx_core.h> | 13 #include <ngx_core.h> |
14 #include <ngx_http.h> | 14 #include <ngx_http.h> |
15 #include <ngx_http_v3_parse.h> | 15 #include <ngx_http_v3_parse.h> |
16 | 16 |
17 | 17 |
18 #define NGX_HTTP_V3_ALPN(s) NGX_HTTP_V3_ALPN_DRAFT(s) | 18 #define NGX_HTTP_V3_ALPN_ADVERTISE "\x02h3" |
19 #define NGX_HTTP_V3_ALPN_DRAFT(s) "\x05h3-" #s | 19 #define NGX_HTTP_V3_ALPN_DRAFT_FMT "\x05h3-%02uD" |
20 #define NGX_HTTP_V3_ALPN_ADVERTISE NGX_HTTP_V3_ALPN(NGX_QUIC_DRAFT_VERSION) | |
21 | 20 |
22 #define NGX_HTTP_V3_VARLEN_INT_LEN 4 | 21 #define NGX_HTTP_V3_VARLEN_INT_LEN 4 |
23 #define NGX_HTTP_V3_PREFIX_INT_LEN 11 | 22 #define NGX_HTTP_V3_PREFIX_INT_LEN 11 |
24 | 23 |
25 #define NGX_HTTP_V3_STREAM_CONTROL 0x00 | 24 #define NGX_HTTP_V3_STREAM_CONTROL 0x00 |