mirror of
https://github.com/nginx/nginx.git
synced 2025-08-06 14:56:15 +08:00
QUIC: fixed ngx_quic_send_ack_range() function.
Created frame was not added to the output queue.
This commit is contained in:
parent
5e6ee4b50a
commit
6e945f235e
@ -3042,7 +3042,10 @@ static ngx_int_t
|
|||||||
ngx_quic_send_ack_range(ngx_connection_t *c, ngx_quic_send_ctx_t *ctx,
|
ngx_quic_send_ack_range(ngx_connection_t *c, ngx_quic_send_ctx_t *ctx,
|
||||||
uint64_t smallest, uint64_t largest)
|
uint64_t smallest, uint64_t largest)
|
||||||
{
|
{
|
||||||
ngx_quic_frame_t *frame;
|
ngx_quic_frame_t *frame;
|
||||||
|
ngx_quic_connection_t *qc;
|
||||||
|
|
||||||
|
qc = ngx_quic_get_connection(c);
|
||||||
|
|
||||||
frame = ngx_quic_alloc_frame(c);
|
frame = ngx_quic_alloc_frame(c);
|
||||||
if (frame == NULL) {
|
if (frame == NULL) {
|
||||||
@ -3056,6 +3059,8 @@ ngx_quic_send_ack_range(ngx_connection_t *c, ngx_quic_send_ctx_t *ctx,
|
|||||||
frame->u.ack.range_count = 0;
|
frame->u.ack.range_count = 0;
|
||||||
frame->u.ack.first_range = largest - smallest;
|
frame->u.ack.first_range = largest - smallest;
|
||||||
|
|
||||||
|
ngx_quic_queue_frame(qc, frame);
|
||||||
|
|
||||||
return NGX_OK;
|
return NGX_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user