comparison src/event/ngx_event_quic.c @ 8660:6201cef77b1d quic

QUIC: resend handshake packets along with initial. To speed up handshake, resend both initial and handshake packets if there's at least one unacknowledged initial packet.
author Roman Arutyunyan <arut@nginx.com>
date Tue, 08 Dec 2020 17:10:22 +0000
parents d9f673d18e9b
children 49efd27dace6
comparison
equal deleted inserted replaced
8659:d9f673d18e9b 8660:6201cef77b1d
3715 if (pkt->level == ssl_encryption_initial) { 3715 if (pkt->level == ssl_encryption_initial) {
3716 ctx = ngx_quic_get_send_ctx(qc, pkt->level); 3716 ctx = ngx_quic_get_send_ctx(qc, pkt->level);
3717 3717
3718 if (!ngx_queue_empty(&ctx->sent)) { 3718 if (!ngx_queue_empty(&ctx->sent)) {
3719 ngx_quic_resend_frames(c, ctx); 3719 ngx_quic_resend_frames(c, ctx);
3720
3721 ctx = ngx_quic_get_send_ctx(qc, ssl_encryption_handshake);
3722 while (!ngx_queue_empty(&ctx->sent)) {
3723 ngx_quic_resend_frames(c, ctx);
3724 }
3720 } 3725 }
3721 } 3726 }
3722 3727
3723 return NGX_OK; 3728 return NGX_OK;
3724 } 3729 }