diff options
author | Vladimir Homutov <vl@nginx.com> | 2021-04-07 13:09:26 +0300 |
---|---|---|
committer | Vladimir Homutov <vl@nginx.com> | 2021-04-07 13:09:26 +0300 |
commit | 6e945f235ec532cb79fcc0f70ec007f89a603e17 (patch) | |
tree | ad85ca863be462bd10bb6ac8122c009b8ca9a071 /src | |
parent | 5e6ee4b50acfb00ecc16a1f0c64e3951132209b7 (diff) | |
download | nginx-6e945f235ec532cb79fcc0f70ec007f89a603e17.tar.gz nginx-6e945f235ec532cb79fcc0f70ec007f89a603e17.zip |
QUIC: fixed ngx_quic_send_ack_range() function.
Created frame was not added to the output queue.
Diffstat (limited to 'src')
-rw-r--r-- | src/event/quic/ngx_event_quic.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/event/quic/ngx_event_quic.c b/src/event/quic/ngx_event_quic.c index 52104fa12..cc66bcce4 100644 --- a/src/event/quic/ngx_event_quic.c +++ b/src/event/quic/ngx_event_quic.c @@ -3042,7 +3042,10 @@ static ngx_int_t ngx_quic_send_ack_range(ngx_connection_t *c, ngx_quic_send_ctx_t *ctx, 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); 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.first_range = largest - smallest; + ngx_quic_queue_frame(qc, frame); + return NGX_OK; } |