comparison src/event/quic/ngx_event_quic.c @ 9172:4ccb0d973206

QUIC: reusing crypto contexts for packet protection.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 20 Oct 2023 18:05:07 +0400
parents ff98ae7d261e
children ff452f283aa9
comparison
equal deleted inserted replaced
9171:f98636db77ef 9172:4ccb0d973206
333 } 333 }
334 334
335 qc->validated = pkt->validated; 335 qc->validated = pkt->validated;
336 336
337 if (ngx_quic_open_sockets(c, qc, pkt) != NGX_OK) { 337 if (ngx_quic_open_sockets(c, qc, pkt) != NGX_OK) {
338 ngx_quic_keys_cleanup(qc->keys);
338 return NULL; 339 return NULL;
339 } 340 }
340 341
341 c->idle = 1; 342 c->idle = 1;
342 ngx_reusable_connection(c, 1); 343 ngx_reusable_connection(c, 1);
582 if (qc->close.posted) { 583 if (qc->close.posted) {
583 ngx_delete_posted_event(&qc->close); 584 ngx_delete_posted_event(&qc->close);
584 } 585 }
585 586
586 ngx_quic_close_sockets(c); 587 ngx_quic_close_sockets(c);
588
589 ngx_quic_keys_cleanup(qc->keys);
587 590
588 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, 0, "quic close completed"); 591 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, 0, "quic close completed");
589 592
590 /* may be tested from SSL callback during SSL shutdown */ 593 /* may be tested from SSL callback during SSL shutdown */
591 c->udp = NULL; 594 c->udp = NULL;