You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by GitBox <gi...@apache.org> on 2020/06/19 04:38:24 UTC

[GitHub] [trafficserver] zizhong commented on a change in pull request #6747: Fix old MIMEHdr handling of HPACK

zizhong commented on a change in pull request #6747:
URL: https://github.com/apache/trafficserver/pull/6747#discussion_r442626552



##########
File path: proxy/http2/HPACK.cc
##########
@@ -430,7 +438,13 @@ HpackDynamicTable::_evict_overflowed_entries()
     (*h)->value_get(&value_len);
 
     this->_current_size -= ADDITIONAL_OCTETS + name_len + value_len;
-    this->_mhdr->field_delete(*h, false);
+
+    if (this->_mhdr_old && this->_mhdr_old->fields_count() != 0) {
+      this->_mhdr_old->field_delete(*h, false);
+    } else {
+      this->_mhdr->field_delete(*h, false);
+    }
+

Review comment:
       @masaori335 Could you elaborate on 
   > we add a new entry to the _mhdr and remove from the _mhdr_old 
   
   I didn't find any reference to  _mhdr_old in `HpackDynamicTable::add_header_field`. Could you help me to understand what I missed? Thanks!




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org