forked from Hakase/nginx-build
Edit hpack patch
This commit is contained in:
+11
-11
@@ -2055,17 +2055,6 @@ ngx_http_v2_state_settings_params(ngx_http_v2_connection_t *h2c, u_char *pos,
|
|||||||
h2c->frame_size = value;
|
h2c->frame_size = value;
|
||||||
break;
|
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:
|
case NGX_HTTP_V2_ENABLE_PUSH_SETTING:
|
||||||
|
|
||||||
if (value > 1) {
|
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);
|
h2c->concurrent_pushes = ngx_min(value, h2scf->concurrent_pushes);
|
||||||
break;
|
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:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user