comparison src/stream/ngx_stream_handler.c @ 8563:bed310672f39 quic

QUIC: moved ssl configuration pointer to quic configuration. The ssl configuration is obtained at config time and saved for future use.
author Vladimir Homutov <vl@nginx.com>
date Thu, 01 Oct 2020 10:04:35 +0300
parents 2da9c4fddd44
children 279ad36f2f4b
comparison
equal deleted inserted replaced
8562:b31c02454539 8563:bed310672f39
116 } 116 }
117 117
118 #if (NGX_STREAM_QUIC) 118 #if (NGX_STREAM_QUIC)
119 119
120 if (addr_conf->quic) { 120 if (addr_conf->quic) {
121 ngx_quic_conf_t *qcf; 121 ngx_quic_conf_t *qcf;
122 ngx_stream_ssl_conf_t *scf;
123 122
124 if (c->qs == NULL) { 123 if (c->qs == NULL) {
125 c->log->connection = c->number; 124 c->log->connection = c->number;
126 125
127 qcf = ngx_stream_get_module_srv_conf(addr_conf->ctx, 126 qcf = ngx_stream_get_module_srv_conf(addr_conf->ctx,
128 ngx_stream_quic_module); 127 ngx_stream_quic_module);
129 scf = ngx_stream_get_module_srv_conf(addr_conf->ctx, 128 ngx_quic_run(c, qcf);
130 ngx_stream_ssl_module);
131
132 ngx_quic_run(c, &scf->ssl, qcf);
133 return; 129 return;
134 } 130 }
135 } 131 }
136 132
137 #endif 133 #endif