comparison src/http/v3/ngx_http_v3.h @ 8360:98c4020f1c9a quic

HTTP/3: keepalive timeout. This timeout limits the time when no client request streams exist.
author Roman Arutyunyan <arut@nginx.com>
date Tue, 30 Mar 2021 16:48:38 +0300
parents fc64ab301bad
children cc3e9c131d79
comparison
equal deleted inserted replaced
8359:fc64ab301bad 8360:98c4020f1c9a
72 #define NGX_HTTP_V3_ERR_DECOMPRESSION_FAILED 0x200 72 #define NGX_HTTP_V3_ERR_DECOMPRESSION_FAILED 0x200
73 #define NGX_HTTP_V3_ERR_ENCODER_STREAM_ERROR 0x201 73 #define NGX_HTTP_V3_ERR_ENCODER_STREAM_ERROR 0x201
74 #define NGX_HTTP_V3_ERR_DECODER_STREAM_ERROR 0x202 74 #define NGX_HTTP_V3_ERR_DECODER_STREAM_ERROR 0x202
75 75
76 76
77 #define ngx_http_v3_get_module_loc_conf(c, module) \
78 ngx_http_get_module_loc_conf( \
79 ((ngx_http_v3_connection_t *) c->quic->parent->data)->hc.conf_ctx, \
80 module)
81
77 #define ngx_http_v3_get_module_srv_conf(c, module) \ 82 #define ngx_http_v3_get_module_srv_conf(c, module) \
78 ngx_http_get_module_srv_conf( \ 83 ngx_http_get_module_srv_conf( \
79 ((ngx_http_v3_connection_t *) c->quic->parent->data)->hc.conf_ctx, \ 84 ((ngx_http_v3_connection_t *) c->quic->parent->data)->hc.conf_ctx, \
80 module) 85 module)
81 86
125 130
126 typedef struct { 131 typedef struct {
127 /* the http connection must be first */ 132 /* the http connection must be first */
128 ngx_http_connection_t hc; 133 ngx_http_connection_t hc;
129 ngx_http_v3_dynamic_table_t table; 134 ngx_http_v3_dynamic_table_t table;
135
136 ngx_event_t keepalive;
137 ngx_uint_t nrequests;
130 138
131 ngx_queue_t blocked; 139 ngx_queue_t blocked;
132 ngx_uint_t nblocked; 140 ngx_uint_t nblocked;
133 141
134 ngx_queue_t pushing; 142 ngx_queue_t pushing;