comparison src/http/ngx_http.c @ 9017:c2f5d79cde64 quic

QUIC: separate UDP framework for QUIC. Previously, QUIC used the existing UDP framework, which was created for UDP in Stream. However the way QUIC connections are created and looked up is different from the way UDP connections in Stream are created and looked up. Now these two implementations are decoupled.
author Roman Arutyunyan <arut@nginx.com>
date Wed, 20 Apr 2022 16:01:17 +0400
parents ad67fcc30567
children c851a2ed5ce8
comparison
equal deleted inserted replaced
9016:55b38514729b 9017:c2f5d79cde64
1820 #endif 1820 #endif
1821 1821
1822 ls->wildcard = addr->opt.wildcard; 1822 ls->wildcard = addr->opt.wildcard;
1823 1823
1824 #if (NGX_HTTP_V3) 1824 #if (NGX_HTTP_V3)
1825
1825 ls->quic = addr->opt.http3; 1826 ls->quic = addr->opt.http3;
1827
1828 if (ls->quic) {
1829 ngx_rbtree_init(&ls->rbtree, &ls->sentinel,
1830 ngx_quic_rbtree_insert_value);
1831 }
1832
1826 #endif 1833 #endif
1827 1834
1828 return ls; 1835 return ls;
1829 } 1836 }
1830 1837