Skip to content

Commit 3adadde

Browse files
committed
detect: clean app-layer txs when we pass the flow
Ticket: 8619 Do not wait to run inspection on the other side of transactions as we do not run any tx detection on passing flows. Avoids accumulating txs (cherry picked from commit 2eede11)
1 parent dd5888c commit 3adadde

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/app-layer-parser.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,8 @@ void AppLayerParserTransactionsCleanup(Flow *f, const uint8_t pkt_dir)
968968
goto next;
969969
}
970970

971-
if (has_tx_detect_flags) {
971+
// for passing flow, do not skip tx as we will not run detection on the other side
972+
if (has_tx_detect_flags && (f->flags & (FLOW_ACTION_PASS)) == 0) {
972973
if (!IS_DISRUPTED(ts_disrupt_flags) &&
973974
(f->sgh_toserver != NULL || (f->flags & FLOW_SGH_TOSERVER) == 0)) {
974975
if ((txd->flags & (APP_LAYER_TX_INSPECTED_TS | APP_LAYER_TX_SKIP_INSPECT_TS)) ==

0 commit comments

Comments
 (0)