comparison src/event/ngx_event_quic.h @ 8626: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 4416b7ab0a27
children 45db1b5c1706
comparison
equal deleted inserted replaced
8625:4416b7ab0a27 8626:e0947c952d43
120 120
121 void ngx_quic_run(ngx_connection_t *c, ngx_quic_conf_t *conf); 121 void ngx_quic_run(ngx_connection_t *c, ngx_quic_conf_t *conf);
122 ngx_connection_t *ngx_quic_open_stream(ngx_connection_t *c, ngx_uint_t bidi); 122 ngx_connection_t *ngx_quic_open_stream(ngx_connection_t *c, ngx_uint_t bidi);
123 void ngx_quic_finalize_connection(ngx_connection_t *c, ngx_uint_t err, 123 void ngx_quic_finalize_connection(ngx_connection_t *c, ngx_uint_t err,
124 const char *reason); 124 const char *reason);
125 uint32_t ngx_quic_version(ngx_connection_t *c);
125 126
126 127
127 /********************************* DEBUG *************************************/ 128 /********************************* DEBUG *************************************/
128 129
129 /* #define NGX_QUIC_DEBUG_PACKETS */ /* dump packet contents */ 130 /* #define NGX_QUIC_DEBUG_PACKETS */ /* dump packet contents */