# HG changeset patch # User Roman Arutyunyan # Date 1607447422 0 # Node ID 6201cef77b1d3671050d9db0f41300a18ab4e8b8 # Parent d9f673d18e9b56b1c92b0b183fb46be69f5df0eb 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. diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c --- a/src/event/ngx_event_quic.c +++ b/src/event/ngx_event_quic.c @@ -3717,6 +3717,11 @@ ngx_quic_handle_crypto_frame(ngx_connect if (!ngx_queue_empty(&ctx->sent)) { ngx_quic_resend_frames(c, ctx); + + ctx = ngx_quic_get_send_ctx(qc, ssl_encryption_handshake); + while (!ngx_queue_empty(&ctx->sent)) { + ngx_quic_resend_frames(c, ctx); + } } }