From 6a101c9b69655d8d07794cb1dcf17ec44fd4a73b Mon Sep 17 00:00:00 2001 From: Hakase Date: Fri, 10 Aug 2018 08:42:00 +0900 Subject: [PATCH] Latest update - 7335 --- src/http/v2/ngx_http_v2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http/v2/ngx_http_v2.c b/src/http/v2/ngx_http_v2.c index 642d918..c18b60c 100644 --- a/src/http/v2/ngx_http_v2.c +++ b/src/http/v2/ngx_http_v2.c @@ -270,8 +270,6 @@ ngx_http_v2_init(ngx_event_t *rev) h2c->frame_size = NGX_HTTP_V2_DEFAULT_FRAME_SIZE; - h2c->table_update = 1; - h2c->max_hpack_table_size = NGX_HTTP_V2_DEFAULT_HPACK_TABLE_SIZE; h2scf = ngx_http_get_module_srv_conf(hc->conf_ctx, ngx_http_v2_module); @@ -2079,6 +2077,8 @@ ngx_http_v2_state_settings_params(ngx_http_v2_connection_t *h2c, u_char *pos, case NGX_HTTP_V2_HEADER_TABLE_SIZE_SETTING: + h2c->table_update = 1; + if (value > NGX_HTTP_V2_MAX_HPACK_TABLE_SIZE) { h2c->max_hpack_table_size = NGX_HTTP_V2_MAX_HPACK_TABLE_SIZE; } else {