From 83318d2ceae9594d67a2559e97033fa74722dfaf Mon Sep 17 00:00:00 2001 From: Hakase Date: Thu, 1 Mar 2018 01:03:27 +0900 Subject: [PATCH] Edit hpack patch --- src/http/v2/ngx_http_v2.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/http/v2/ngx_http_v2.c b/src/http/v2/ngx_http_v2.c index 12c9ad1..75697f7 100644 --- a/src/http/v2/ngx_http_v2.c +++ b/src/http/v2/ngx_http_v2.c @@ -2055,17 +2055,6 @@ ngx_http_v2_state_settings_params(ngx_http_v2_connection_t *h2c, u_char *pos, h2c->frame_size = value; break; - case NGX_HTTP_V2_HEADER_TABLE_SIZE_SETTING: - - if (value > NGX_HTTP_V2_MAX_HPACK_TABLE_SIZE) { - h2c->max_hpack_table_size = NGX_HTTP_V2_MAX_HPACK_TABLE_SIZE; - } else { - h2c->max_hpack_table_size = value; - } - - h2c->indicate_resize = 1; - break; - case NGX_HTTP_V2_ENABLE_PUSH_SETTING: if (value > 1) { @@ -2087,6 +2076,17 @@ ngx_http_v2_state_settings_params(ngx_http_v2_connection_t *h2c, u_char *pos, h2c->concurrent_pushes = ngx_min(value, h2scf->concurrent_pushes); break; + case NGX_HTTP_V2_HEADER_TABLE_SIZE_SETTING: + + if (value > NGX_HTTP_V2_MAX_HPACK_TABLE_SIZE) { + h2c->max_hpack_table_size = NGX_HTTP_V2_MAX_HPACK_TABLE_SIZE; + } else { + h2c->max_hpack_table_size = value; + } + + h2c->indicate_resize = 1; + break; + default: break; }