Skip to content

Commit 1731805

Browse files
catenacybervictorjulien
authored andcommitted
doh2: clear the buffer after processing it
Ticket: 8725 So that multiple HTTP2 DATA frames with EndOfStream flag set, do not make the buffer grow, while processing it each time, resulting in quadratic complexity
1 parent 7ec9d72 commit 1731805

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rust/src/http2/http2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ impl HTTP2Transaction {
484484
SCAppLayerForceProtocolChange(flow, ALPROTO_DOH2);
485485
}
486486
}
487+
doh.data_buf[dir.index()].clear();
487488
}
488489
}
489490
}

0 commit comments

Comments
 (0)