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 2eede11195)
pull/15566/head
Philippe Antoine 1 month ago
parent dd5888ce8a
commit 3adaddee68

@ -968,7 +968,8 @@ void AppLayerParserTransactionsCleanup(Flow *f, const uint8_t pkt_dir)
goto next;
}
if (has_tx_detect_flags) {
// for passing flow, do not skip tx as we will not run detection on the other side
if (has_tx_detect_flags && (f->flags & (FLOW_ACTION_PASS)) == 0) {
if (!IS_DISRUPTED(ts_disrupt_flags) &&
(f->sgh_toserver != NULL || (f->flags & FLOW_SGH_TOSERVER) == 0)) {
if ((txd->flags & (APP_LAYER_TX_INSPECTED_TS | APP_LAYER_TX_SKIP_INSPECT_TS)) ==

Loading…
Cancel
Save