]> git.kaiwu.me - nginx.git/commitdiff
QUIC: fixed ngx_quic_send_ack_range() function.
authorVladimir Homutov <vl@nginx.com>
Wed, 7 Apr 2021 10:09:26 +0000 (13:09 +0300)
committerVladimir Homutov <vl@nginx.com>
Wed, 7 Apr 2021 10:09:26 +0000 (13:09 +0300)
Created frame was not added to the output queue.

src/event/quic/ngx_event_quic.c

index 52104fa12b03920cffd0d443c732b2de29cf0d11..cc66bcce410d6bdc37bc9952d49a91262b3d6d91 100644 (file)
@@ -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;
 }