diff options
author | Roman Arutyunyan <arut@nginx.com> | 2022-01-27 12:20:47 +0300 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2022-01-27 12:20:47 +0300 |
commit | c1b172f1d67f806c84dc088ddc57ed76514e85dd (patch) | |
tree | cb917e952413aa61e8641ae88d39ba5358e697eb /src/http/v3/ngx_http_v3_parse.c | |
parent | acb585518d868a5051c1caa85add006d975751f5 (diff) | |
download | nginx-c1b172f1d67f806c84dc088ddc57ed76514e85dd.tar.gz nginx-c1b172f1d67f806c84dc088ddc57ed76514e85dd.zip |
HTTP/3: delayed Insert Count Increment instruction.
Sending the instruction is delayed until the end of the current event cycle.
Delaying the instruction is allowed by quic-qpack-21, section 2.2.2.3.
The goal is to reduce the amount of data sent back to client by accumulating
several inserts in one instruction and sometimes not sending the instruction at
all, if Section Acknowledgement was sent just before it.
Diffstat (limited to 'src/http/v3/ngx_http_v3_parse.c')
-rw-r--r-- | src/http/v3/ngx_http_v3_parse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/v3/ngx_http_v3_parse.c b/src/http/v3/ngx_http_v3_parse.c index 25c1edf6d..cd70bd3bf 100644 --- a/src/http/v3/ngx_http_v3_parse.c +++ b/src/http/v3/ngx_http_v3_parse.c @@ -395,6 +395,8 @@ done: if (ngx_http_v3_send_ack_section(c, c->quic->id) != NGX_OK) { return NGX_ERROR; } + + ngx_http_v3_ack_insert_count(c, st->prefix.insert_count); } st->state = sw_start; |