mirror of
https://github.com/nginx/nginx.git
synced 2025-08-05 22:26:15 +08: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
@ -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…
Reference in New Issue
Block a user