Klaus Demo nginx / 0d22460
HTTP/2: workaround for clients which fail on table size updates. There are clients which cannot handle HPACK's dynamic table size updates as added in 12cadc4669a7 (1.13.6). Notably, old versions of OkHttp library are known to fail on it (ticket #1397). This change makes it possible to work with such clients by only sending dynamic table size updates in response to SETTINGS_HEADER_TABLE_SIZE. As a downside, clients which do not use SETTINGS_HEADER_TABLE_SIZE will continue to maintain default 4k table. Maxim Dounin 3 years ago
1 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
269269
270270 h2c->frame_size = NGX_HTTP_V2_DEFAULT_FRAME_SIZE;
271271
272 h2c->table_update = 1;
273
274272 h2scf = ngx_http_get_module_srv_conf(hc->conf_ctx, ngx_http_v2_module);
275273
276274 h2c->concurrent_pushes = h2scf->concurrent_pushes;
20722070 ngx_http_v2_module);
20732071
20742072 h2c->concurrent_pushes = ngx_min(value, h2scf->concurrent_pushes);
2073 break;
2074
2075 case NGX_HTTP_V2_HEADER_TABLE_SIZE_SETTING:
2076
2077 h2c->table_update = 1;
20752078 break;
20762079
20772080 default: