comparison src/stream/ngx_stream_handler.c @ 9106:113e2438dbd4 quic

Stream: removed QUIC support.
author Roman Arutyunyan <arut@nginx.com>
date Sun, 14 May 2023 12:05:35 +0400
parents 2706d27d2c76
children
comparison
equal deleted inserted replaced
9105:8057e053480a 9106:113e2438dbd4
127 127
128 #if (NGX_STREAM_SSL) 128 #if (NGX_STREAM_SSL)
129 s->ssl = addr_conf->ssl; 129 s->ssl = addr_conf->ssl;
130 #endif 130 #endif
131 131
132 #if (NGX_STREAM_QUIC)
133 s->ssl |= addr_conf->quic;
134 #endif
135
136 if (c->buffer) { 132 if (c->buffer) {
137 s->received += c->buffer->last - c->buffer->pos; 133 s->received += c->buffer->last - c->buffer->pos;
138 } 134 }
139 135
140 s->connection = c; 136 s->connection = c;
174 } 170 }
175 171
176 tp = ngx_timeofday(); 172 tp = ngx_timeofday();
177 s->start_sec = tp->sec; 173 s->start_sec = tp->sec;
178 s->start_msec = tp->msec; 174 s->start_msec = tp->msec;
179
180 #if (NGX_STREAM_QUIC)
181
182 if (addr_conf->quic) {
183 ngx_quic_conf_t *qcf;
184
185 if (c->quic == NULL) {
186 qcf = ngx_stream_get_module_srv_conf(addr_conf->ctx,
187 ngx_stream_quic_module);
188 ngx_quic_run(c, qcf);
189 return;
190 }
191 }
192
193 #endif
194 175
195 rev = c->read; 176 rev = c->read;
196 rev->handler = ngx_stream_session_handler; 177 rev->handler = ngx_stream_session_handler;
197 178
198 if (addr_conf->proxy_protocol) { 179 if (addr_conf->proxy_protocol) {