Mercurial > hg > nginx-quic
comparison src/stream/ngx_stream_handler.c @ 8000:893b3313f53c quic
QUIC: added "quic" listen parameter in Stream.
Also, introduced ngx_stream_quic_module.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Tue, 21 Jul 2020 23:08:39 +0300 |
parents | 3908156a51fa |
children | 2da9c4fddd44 |
comparison
equal
deleted
inserted
replaced
7999:0d2b2664b41c | 8000:893b3313f53c |
---|---|
113 addr_conf = &addr[0].conf; | 113 addr_conf = &addr[0].conf; |
114 break; | 114 break; |
115 } | 115 } |
116 } | 116 } |
117 | 117 |
118 #if (NGX_STREAM_QUIC) | |
119 | |
120 if (addr_conf->quic) { | |
121 ngx_quic_conf_t *qcf; | |
122 ngx_stream_ssl_conf_t *scf; | |
123 | |
124 if (c->qs == NULL) { | |
125 c->log->connection = c->number; | |
126 | |
127 qcf = ngx_stream_get_module_srv_conf(addr_conf->ctx, | |
128 ngx_stream_quic_module); | |
129 scf = ngx_stream_get_module_srv_conf(addr_conf->ctx, | |
130 ngx_stream_ssl_module); | |
131 | |
132 ngx_quic_run(c, &scf->ssl, qcf, ngx_stream_init_connection); | |
133 return; | |
134 } | |
135 } | |
136 | |
137 #endif | |
138 | |
118 s = ngx_pcalloc(c->pool, sizeof(ngx_stream_session_t)); | 139 s = ngx_pcalloc(c->pool, sizeof(ngx_stream_session_t)); |
119 if (s == NULL) { | 140 if (s == NULL) { |
120 ngx_stream_close_connection(c); | 141 ngx_stream_close_connection(c); |
121 return; | 142 return; |
122 } | 143 } |