Repository: trafficserver Updated Branches: refs/heads/6.0.x 0ff9f34a2 -> e88433608
TS-3845 Set _current_size to 0 when clearing H2 headers This fixes the issue where HPACK error when trying to delete entries from an empty table. (cherry picked from commit d7428216557360a3c7b33dffeb7a3dc485f3b504) Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/e8843360 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/e8843360 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/e8843360 Branch: refs/heads/6.0.x Commit: e884336083726a105953ab1e4246c94da0a5de4a Parents: 0ff9f34 Author: Masakazu Kitajo <[email protected]> Authored: Mon Aug 17 17:08:01 2015 -0600 Committer: Bryan Call <[email protected]> Committed: Tue Aug 25 13:28:18 2015 -0700 ---------------------------------------------------------------------- proxy/http2/HPACK.cc | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/e8843360/proxy/http2/HPACK.cc ---------------------------------------------------------------------- diff --git a/proxy/http2/HPACK.cc b/proxy/http2/HPACK.cc index d65a6b1..4c6a702 100644 --- a/proxy/http2/HPACK.cc +++ b/proxy/http2/HPACK.cc @@ -245,6 +245,7 @@ Http2DynamicTable::add_header_field(const MIMEField *field) // be emptied of all existing entries. _headers.clear(); _mhdr->fields_clear(); + _current_size = 0; } else { _current_size += header_size; while (_current_size > _settings_dynamic_table_size) {
