You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2015/08/18 01:12:55 UTC

trafficserver git commit: TS-3845 Set _current_size to 0 when clearing H2 headers

Repository: trafficserver
Updated Branches:
  refs/heads/master ef80cb9c4 -> d74282165


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.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/d7428216
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/d7428216
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/d7428216

Branch: refs/heads/master
Commit: d7428216557360a3c7b33dffeb7a3dc485f3b504
Parents: ef80cb9
Author: Masakazu Kitajo <mk...@yahoo-corp.jp>
Authored: Mon Aug 17 17:08:01 2015 -0600
Committer: Leif Hedstrom <zw...@apache.org>
Committed: Mon Aug 17 17:08:01 2015 -0600

----------------------------------------------------------------------
 proxy/http2/HPACK.cc | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/d7428216/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) {