Mercurial > hg > nginx
comparison src/http/modules/ngx_http_quic_module.h @ 8769:9ec3e71f8a61 quic
HTTP/3: reference h3c directly from ngx_http_connection_t.
Previously, an ngx_http_v3_connection_t object was created for HTTP/3 and
then assinged to c->data instead of the generic ngx_http_connection_t object.
Now a direct reference is added to ngx_http_connection_t, which is less
confusing and does not require a flag for http3.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Wed, 05 May 2021 14:53:36 +0300 |
parents | 554e11a325a9 |
children | 606bf52888d2 |
comparison
equal
deleted
inserted
replaced
8768:40d710a66aef | 8769:9ec3e71f8a61 |
---|---|
16 | 16 |
17 #define NGX_HTTP_QUIC_ALPN_ADVERTISE "\x0Ahq-interop" | 17 #define NGX_HTTP_QUIC_ALPN_ADVERTISE "\x0Ahq-interop" |
18 #define NGX_HTTP_QUIC_ALPN_DRAFT_FMT "\x05hq-%02uD" | 18 #define NGX_HTTP_QUIC_ALPN_DRAFT_FMT "\x05hq-%02uD" |
19 | 19 |
20 | 20 |
21 #define ngx_http_quic_get_connection(c) \ | |
22 ((ngx_http_connection_t *) (c)->quic->parent->data) | |
23 | |
24 | |
21 ngx_int_t ngx_http_quic_init(ngx_connection_t *c); | 25 ngx_int_t ngx_http_quic_init(ngx_connection_t *c); |
22 | 26 |
23 | 27 |
24 #endif /* _NGX_HTTP_QUIC_H_INCLUDED_ */ | 28 #endif /* _NGX_HTTP_QUIC_H_INCLUDED_ */ |