Latest...
This commit is contained in:
@@ -274,6 +274,8 @@ ngx_http_v2_init(ngx_event_t *rev)
|
||||
|
||||
h2c->frame_size = NGX_HTTP_V2_DEFAULT_FRAME_SIZE;
|
||||
|
||||
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);
|
||||
|
||||
h2c->concurrent_pushes = h2scf->concurrent_pushes;
|
||||
@@ -2282,7 +2284,14 @@ 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 {
|
||||
h2c->max_hpack_table_size = value;
|
||||
}
|
||||
|
||||
h2c->indicate_resize = 1;
|
||||
h2c->table_update = 1;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user