Mercurial > hg > nginx
comparison src/http/v3/ngx_http_v3_table.h @ 8989:81a3429db8b0 quic
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.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Thu, 27 Jan 2022 12:20:47 +0300 |
parents | 18d23ed15eef |
children |
comparison
equal
deleted
inserted
replaced
8988:6434160b4b78 | 8989:81a3429db8b0 |
---|---|
24 ngx_http_v3_field_t **elts; | 24 ngx_http_v3_field_t **elts; |
25 ngx_uint_t nelts; | 25 ngx_uint_t nelts; |
26 ngx_uint_t base; | 26 ngx_uint_t base; |
27 size_t size; | 27 size_t size; |
28 size_t capacity; | 28 size_t capacity; |
29 uint64_t insert_count; | |
30 uint64_t ack_insert_count; | |
31 ngx_event_t send_insert_count; | |
29 } ngx_http_v3_dynamic_table_t; | 32 } ngx_http_v3_dynamic_table_t; |
30 | 33 |
31 | 34 |
35 void ngx_http_v3_inc_insert_count_handler(ngx_event_t *ev); | |
32 void ngx_http_v3_cleanup_table(ngx_http_v3_session_t *h3c); | 36 void ngx_http_v3_cleanup_table(ngx_http_v3_session_t *h3c); |
33 ngx_int_t ngx_http_v3_ref_insert(ngx_connection_t *c, ngx_uint_t dynamic, | 37 ngx_int_t ngx_http_v3_ref_insert(ngx_connection_t *c, ngx_uint_t dynamic, |
34 ngx_uint_t index, ngx_str_t *value); | 38 ngx_uint_t index, ngx_str_t *value); |
35 ngx_int_t ngx_http_v3_insert(ngx_connection_t *c, ngx_str_t *name, | 39 ngx_int_t ngx_http_v3_insert(ngx_connection_t *c, ngx_str_t *name, |
36 ngx_str_t *value); | 40 ngx_str_t *value); |
44 ngx_str_t *name, ngx_str_t *value); | 48 ngx_str_t *name, ngx_str_t *value); |
45 ngx_int_t ngx_http_v3_decode_insert_count(ngx_connection_t *c, | 49 ngx_int_t ngx_http_v3_decode_insert_count(ngx_connection_t *c, |
46 ngx_uint_t *insert_count); | 50 ngx_uint_t *insert_count); |
47 ngx_int_t ngx_http_v3_check_insert_count(ngx_connection_t *c, | 51 ngx_int_t ngx_http_v3_check_insert_count(ngx_connection_t *c, |
48 ngx_uint_t insert_count); | 52 ngx_uint_t insert_count); |
53 void ngx_http_v3_ack_insert_count(ngx_connection_t *c, uint64_t insert_count); | |
49 ngx_int_t ngx_http_v3_set_param(ngx_connection_t *c, uint64_t id, | 54 ngx_int_t ngx_http_v3_set_param(ngx_connection_t *c, uint64_t id, |
50 uint64_t value); | 55 uint64_t value); |
51 | 56 |
52 | 57 |
53 #endif /* _NGX_HTTP_V3_TABLE_H_INCLUDED_ */ | 58 #endif /* _NGX_HTTP_V3_TABLE_H_INCLUDED_ */ |