mirror of
https://github.com/nginx/nginx.git
synced 2026-10-24 04:52:25 +00:00
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.
This commit is contained in:
parent
fc3f04b111
commit
e5c10dce5e
1 changed files with 5 additions and 0 deletions
|
|
@ -3717,6 +3717,11 @@ ngx_quic_handle_crypto_frame(ngx_connection_t *c, ngx_quic_header_t *pkt,
|
|||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue