Mercurial > hg > nginx
comparison src/event/ngx_event_quic.c @ 8290:9895d0fa8756 quic
Unbreak sending CONNECTION_CLOSE from the send_alert callback.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 27 Mar 2020 12:52:08 +0300 |
parents | 949b95e4d504 |
children | 1ec905f4d851 |
comparison
equal
deleted
inserted
replaced
8289:949b95e4d504 | 8290:9895d0fa8756 |
---|---|
302 ngx_connection_t *c; | 302 ngx_connection_t *c; |
303 ngx_quic_frame_t *frame; | 303 ngx_quic_frame_t *frame; |
304 | 304 |
305 c = ngx_ssl_get_connection((ngx_ssl_conn_t *) ssl_conn); | 305 c = ngx_ssl_get_connection((ngx_ssl_conn_t *) ssl_conn); |
306 | 306 |
307 if (c->quic->closing) { | |
308 return 1; | |
309 } | |
310 | |
311 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0, | 307 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0, |
312 "ngx_quic_send_alert(), lvl=%d, alert=%d", | 308 "ngx_quic_send_alert(), lvl=%d, alert=%d", |
313 (int) level, (int) alert); | 309 (int) level, (int) alert); |
314 | 310 |
315 frame = ngx_quic_alloc_frame(c, 0); | 311 frame = ngx_quic_alloc_frame(c, 0); |