comparison src/event/ngx_event_quic.c @ 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 405b6e8eb523
comparison
equal deleted inserted replaced
8625:4416b7ab0a27 8626:e0947c952d43
5811 #ifdef NGX_QUIC_DEBUG_FRAMES_ALLOC 5811 #ifdef NGX_QUIC_DEBUG_FRAMES_ALLOC
5812 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, 5812 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0,
5813 "quic free frame n:%ui", qc->nframes); 5813 "quic free frame n:%ui", qc->nframes);
5814 #endif 5814 #endif
5815 } 5815 }
5816
5817
5818 uint32_t
5819 ngx_quic_version(ngx_connection_t *c)
5820 {
5821 uint32_t version;
5822
5823 version = c->quic->version;
5824
5825 return (version & 0xff000000) == 0xff000000 ? version & 0xff : version;
5826 }