Skip to content

Commit

Permalink
fix[http2]: hpack resize on decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
SHIINASAMA committed Sep 11, 2024
1 parent d55945d commit c3cc5f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sese
6 changes: 3 additions & 3 deletions src/HttpConnectionEx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,10 @@ void HttpConnectionEx::handleHeadersFrame() {

if (stream->end_headers) {
auto rt = HPackUtil::decode(&stream->temp_buffer, stream->temp_buffer.getReadableSize(), req_dynamic_table,
stream->request);
stream->request, false);
stream->temp_buffer.freeCapacity();
if (!rt) {
writeGoawayFrame(frame.ident, 0, GOAWAY_COMPRESSION_ERROR, "");
if (rt) {
writeGoawayFrame(frame.ident, 0, rt, "");
return;
}

Expand Down

0 comments on commit c3cc5f8

Please sign in to comment.