From b813b9ec358862a2a94868bc057420d6eca5c05d Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Tue, 21 Jul 2020 23:09:22 +0300 Subject: QUIC: added "quic" listen parameter. The parameter allows processing HTTP/0.9-2 over QUIC. Also, introduced ngx_http_quic_module and moved QUIC settings there --- src/core/ngx_connection.c | 2 ++ src/core/ngx_connection.h | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/ngx_connection.c b/src/core/ngx_connection.c index ba07c63e8..1fb569d30 100644 --- a/src/core/ngx_connection.c +++ b/src/core/ngx_connection.c @@ -1034,9 +1034,11 @@ ngx_close_listening_sockets(ngx_cycle_t *cycle) ls = cycle->listening.elts; for (i = 0; i < cycle->listening.nelts; i++) { +#if (NGX_QUIC) if (ls[i].quic) { continue; } +#endif c = ls[i].connection; diff --git a/src/core/ngx_connection.h b/src/core/ngx_connection.h index 294d4b212..2ce0f153b 100644 --- a/src/core/ngx_connection.h +++ b/src/core/ngx_connection.h @@ -150,9 +150,12 @@ struct ngx_connection_s { ngx_proxy_protocol_t *proxy_protocol; -#if (NGX_SSL || NGX_COMPAT) +#if (NGX_QUIC || NGX_COMPAT) ngx_quic_connection_t *quic; ngx_quic_stream_t *qs; +#endif + +#if (NGX_SSL || NGX_COMPAT) ngx_ssl_connection_t *ssl; #endif -- cgit