]> git.kaiwu.me - nginx.git/commit
HTTP/2: signal 0-byte HPACK's dynamic table size.
authorPiotr Sikora <piotrsikora@google.com>
Wed, 30 Aug 2017 21:52:11 +0000 (14:52 -0700)
committerPiotr Sikora <piotrsikora@google.com>
Wed, 30 Aug 2017 21:52:11 +0000 (14:52 -0700)
commit63f5d46f58e537745987e9d68bc65b03830238a7
tree69ca52b24a7e53f8a59fd80d0edfbec533a6b5a1
parent0360bf2e5b778e53022a0586cd078ec6d3e42deb
HTTP/2: signal 0-byte HPACK's dynamic table size.

This change lets NGINX talk to clients with SETTINGS_HEADER_TABLE_SIZE
smaller than the default 4KB. Previously, NGINX would ACK the SETTINGS
frame with a small dynamic table size, but it would never send dynamic
table size update, leading to a connection-level COMPRESSION_ERROR.

Also, it allows clients to release 4KB of memory per connection, since
NGINX doesn't use HPACK's dynamic table when encoding headers, however
clients had to maintain it, since NGINX never signaled that it doesn't
use it.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
src/http/v2/ngx_http_v2.c
src/http/v2/ngx_http_v2.h
src/http/v2/ngx_http_v2_filter_module.c