comparison src/http/v3/ngx_http_v3.h @ 8824:054f9be0aaf9 quic

HTTP/3: http3_max_uni_streams directive. The directive limits the number of uni streams client is allowed to create.
author Roman Arutyunyan <arut@nginx.com>
date Thu, 29 Jul 2021 12:17:56 +0300
parents 1fec68e322d0
children 4f922f611135
comparison
equal deleted inserted replaced
8823:f3331deed357 8824:054f9be0aaf9
51 #define NGX_HTTP_V3_MAX_KNOWN_STREAM 6 51 #define NGX_HTTP_V3_MAX_KNOWN_STREAM 6
52 52
53 #define NGX_HTTP_V3_DEFAULT_MAX_TABLE_CAPACITY 16384 53 #define NGX_HTTP_V3_DEFAULT_MAX_TABLE_CAPACITY 16384
54 #define NGX_HTTP_V3_DEFAULT_MAX_BLOCKED_STREAMS 16 54 #define NGX_HTTP_V3_DEFAULT_MAX_BLOCKED_STREAMS 16
55 #define NGX_HTTP_V3_DEFAULT_MAX_CONCURRENT_PUSHES 10 55 #define NGX_HTTP_V3_DEFAULT_MAX_CONCURRENT_PUSHES 10
56 #define NGX_HTTP_V3_DEFAULT_MAX_UNI_STREAMS 3
56 57
57 /* HTTP/3 errors */ 58 /* HTTP/3 errors */
58 #define NGX_HTTP_V3_ERR_NO_ERROR 0x100 59 #define NGX_HTTP_V3_ERR_NO_ERROR 0x100
59 #define NGX_HTTP_V3_ERR_GENERAL_PROTOCOL_ERROR 0x101 60 #define NGX_HTTP_V3_ERR_GENERAL_PROTOCOL_ERROR 0x101
60 #define NGX_HTTP_V3_ERR_INTERNAL_ERROR 0x102 61 #define NGX_HTTP_V3_ERR_INTERNAL_ERROR 0x102
97 98
98 typedef struct { 99 typedef struct {
99 size_t max_table_capacity; 100 size_t max_table_capacity;
100 ngx_uint_t max_blocked_streams; 101 ngx_uint_t max_blocked_streams;
101 ngx_uint_t max_concurrent_pushes; 102 ngx_uint_t max_concurrent_pushes;
103 ngx_uint_t max_uni_streams;
102 } ngx_http_v3_srv_conf_t; 104 } ngx_http_v3_srv_conf_t;
103 105
104 106
105 typedef struct { 107 typedef struct {
106 ngx_flag_t push_preload; 108 ngx_flag_t push_preload;